UNPKG

bbo

Version:

bbo is a utility library of zero dependencies for javascript.

10 lines (8 loc) 227 B
/** * 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); }; export default drop;