Skip to content

Commit f58e6c3

Browse files
committed
fix each function
1 parent 697a4ac commit f58e6c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/flow.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,8 @@
15661566
}
15671567
var key;
15681568
// Is Array?
1569-
if (Array.isArray(obj)) {
1569+
// Array.isArray won't work, not only arrays can be iterated by index https://github.com/flowjs/ng-flow/issues/236#
1570+
if (typeof(obj.length) !== 'undefined') {
15701571
for (key = 0; key < obj.length; key++) {
15711572
if (callback.call(context, obj[key], key) === false) {
15721573
return ;

0 commit comments

Comments
 (0)