source: frontend/node_modules/underscore/cjs/initial.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 380 bytes
Line 
1var _setup = require('./_setup.js');
2
3// Returns everything but the last entry of the array. Especially useful on
4// the arguments object. Passing **n** will return all the values in
5// the array, excluding the last N.
6function initial(array, n, guard) {
7 return _setup.slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
8}
9
10module.exports = initial;
Note: See TracBrowser for help on using the repository browser.