Files
rspade_system/node_modules/collect.js/dist/methods/slice.js
2025-12-03 21:28:08 +00:00

11 lines
234 B
JavaScript
Executable File

'use strict';
module.exports = function slice(remove, limit) {
var collection = this.items.slice(remove);
if (limit !== undefined) {
collection = collection.slice(0, limit);
}
return new this.constructor(collection);
};