ledisdb/client/nodejs/ledis/lib/to_array.js

13 lines
201 B
JavaScript
Raw Normal View History

2014-08-05 06:52:39 +04:00
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;