@bbn/bbn 1.0.60 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +4 -2
- package/dist/fn/type/isIterable.js +4 -2
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -105,8 +105,10 @@
|
|
|
105
105
|
if (!args.length) {
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
108
|
-
for (let
|
|
109
|
-
if (!
|
|
108
|
+
for (let a of args) {
|
|
109
|
+
if (!a ||
|
|
110
|
+
typeof a !== "object" ||
|
|
111
|
+
Symbol.iterator in Object(a)) {
|
|
110
112
|
return false;
|
|
111
113
|
}
|
|
112
114
|
}
|
|
@@ -27,8 +27,10 @@ const isIterable = function (...args) {
|
|
|
27
27
|
if (!args.length) {
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
|
-
for (let
|
|
31
|
-
if (!
|
|
30
|
+
for (let a of args) {
|
|
31
|
+
if (!a ||
|
|
32
|
+
typeof a !== "object" ||
|
|
33
|
+
Symbol.iterator in Object(a)) {
|
|
32
34
|
return false;
|
|
33
35
|
}
|
|
34
36
|
}
|