update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
12
node_modules/ramda/es/internal/_aperture.js
generated
vendored
Normal file
12
node_modules/ramda/es/internal/_aperture.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
export default function _aperture(n, list) {
|
||||
var idx = 0;
|
||||
var limit = list.length - (n - 1);
|
||||
var acc = new Array(limit >= 0 ? limit : 0);
|
||||
|
||||
while (idx < limit) {
|
||||
acc[idx] = Array.prototype.slice.call(list, idx, idx + n);
|
||||
idx += 1;
|
||||
}
|
||||
|
||||
return acc;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue