UNPKG

lenye_base

Version:

基础方法

18 lines (15 loc) 326 B
/** * 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;