bbo
Version:
bbo is a utility library of zero dependencies for javascript.
20 lines (16 loc) • 334 B
JavaScript
;
/**
* arguments to array
*/
/**
* Converts the arguments object to an array object and slice it.
* first defalult is 0.
* @export
* @param {*} $arguments
* @param {*} first
* @returns
*/
function args($arguments, first) {
return Array.prototype.slice.call($arguments, first || 0);
}
module.exports = args;