UNPKG

bbo

Version:

bbo is a utility library of zero dependencies for javascript.

12 lines (9 loc) 244 B
'use strict'; /** * Returns a new array with n elements removed from the left. */ var drop = function (arr) { var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; return arr.slice(n); }; module.exports = drop;