I was working through a problem on Codewars and saw the following solution as being the most clever as voted on by the community:
const dataReverse = a => a.join``.match(/\d{8}/g).reverse().join``.split``.map(Number);
I was wondering how this person invokes the .join, and .split methods without using any parentheses.
The incoming data is one long array whose contents is originally numbers (0 or 1) and length will always be a multiple of 8.
If more information is needed, please let me know. Thank you!