mirror of https://github.com/ledisdb/ledisdb.git
13 lines
201 B
JavaScript
13 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;
|