These are chat archives for camperbot/bonfire-truncate-a-string

8th
Feb 2016
Emmanuel Evbuomwan
@iamnosa
Feb 08 2016 12:25
This message was deleted
This message was deleted
This message was deleted
This message was deleted
function chunk(arr, size) {
// Break it up.
var iamnosa = [];
while (arr.length) {
iamnosa.push(arr.splice(0, size));
}
return iamnosa;
}
chunk(["a", "b", "c", "d"], 2);