12 lines
201 B
JavaScript
12 lines
201 B
JavaScript
function to_array(args) {
|
|
var len = args.length,
|
|
arr = new Array(len), i;
|
|
|
|
for (i = 0; i < len; i += 1) {
|
|
arr[i] = args[i];
|
|
}
|
|
|
|
return arr;
|
|
}
|
|
|
|
module.exports = to_array;
|