1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

doc: fix typos

This commit is contained in:
Ruben Bridgewater
2017-05-05 18:24:31 +02:00
parent c81f85576c
commit 086c90d938
8 changed files with 19 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ function replyToStrings (reply) {
if (reply instanceof Array) {
var res = new Array(reply.length);
for (var i = 0; i < reply.length; i++) {
// Recusivly call the function as slowlog returns deep nested replies
// Recursively call the function as slowlog returns deep nested replies
res[i] = replyToStrings(reply[i]);
}
return res;
@@ -43,9 +43,9 @@ function clone (obj) {
}
if (Object.prototype.toString.call(obj) === '[object Object]') {
copy = {};
var elems = Object.keys(obj);
var elements = Object.keys(obj);
var elem;
while (elem = elems.pop()) {
while (elem = elements.pop()) {
copy[elem] = clone(obj[elem]);
}
return copy;