bbo
Version:
bbo is a utility library of zero dependencies for javascript.
18 lines (15 loc) • 317 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);
}
export default args;