diff options
author | Ilya Shatokhin <ilyas@local.pushok.com> | 2016-03-22 03:30:00 -0300 |
---|---|---|
committer | Ilya Shatokhin <ilyas@local.pushok.com> | 2016-03-22 03:30:00 -0300 |
commit | aec7038cdf5b6641abeda5545bff2c18104ba156 (patch) | |
tree | c702e06c4606deedc1f7e3699550ab55be7da86d /lib | |
parent | 866bfb9a8dac99b121dbfa6464a2ed358c085a0e (diff) | |
download | async-aec7038cdf5b6641abeda5545bff2c18104ba156.tar.gz |
Added new tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/keyIterator.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/internal/keyIterator.js b/lib/internal/keyIterator.js deleted file mode 100644 index 0e2b0c3..0000000 --- a/lib/internal/keyIterator.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -import isArrayLike from 'lodash/isArrayLike'; -import keys from 'lodash/keys'; - -export default function keyIterator(coll) { - var i = -1; - var len; - if (isArrayLike(coll)) { - len = coll.length; - return function next() { - i++; - return i < len ? i : null; - }; - } else { - var okeys = keys(coll); - len = okeys.length; - return function next() { - i++; - return i < len ? okeys[i] : null; - }; - } -} |