summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIlya Shatokhin <ilyas@local.pushok.com>2016-03-22 03:30:00 -0300
committerIlya Shatokhin <ilyas@local.pushok.com>2016-03-22 03:30:00 -0300
commitaec7038cdf5b6641abeda5545bff2c18104ba156 (patch)
treec702e06c4606deedc1f7e3699550ab55be7da86d /lib
parent866bfb9a8dac99b121dbfa6464a2ed358c085a0e (diff)
downloadasync-aec7038cdf5b6641abeda5545bff2c18104ba156.tar.gz
Added new tests
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/keyIterator.js23
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;
- };
- }
-}