UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

15 lines (14 loc) 293 B
"use strict"; exports.__esModule = true; exports.default = splitEvery; function splitEvery(n, list) { var splitted = []; var position = 0; var { length: length } = list; while (position < length) { splitted.push(list.slice(position, position += n)); } return splitted; }