You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
* connection error did not properly trigger reconnection logic [GH-85] * client.hmget(key, [val1, val2]) was not expanding properly [GH-66] * client.quit() while in pub/sub mode would throw an error [GH-87] * client.multi(['hmset', 'key', {foo: 'bar'}]) fails [GH-92]
14 lines
301 B
JavaScript
14 lines
301 B
JavaScript
// the "new Array(len)" syntax is legal and optimized by V8, but JSHint is utterly confused by it.
|
|
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;
|