an array that groups items by two and if it doesn't fit comfortably in two, then to just give it its own group. Example:
//[1,2,3,4,5,6,7]
//output with magic array stuff:
//[[1,2],[3,4],[5,6],[7]]
//if i have [1,2,3,4,5,6,7,8]
//output with magic array stuff:
//[[1,2],[3,4],[5,6],[7,8]]
etc. Any help would be great! :D
https://ramdajs.com/docs/#splitEvery
Обсуждают сегодня