minor tweaks (#3502)

This commit is contained in:
Alex Lam S.L
2019-10-20 15:19:19 +08:00
committed by GitHub
parent ca6dce43fe
commit 9199ab5846
4 changed files with 40 additions and 78 deletions

View File

@@ -127,8 +127,7 @@ var MAP = (function() {
} else {
top.push(val);
}
}
else if (val !== skip) {
} else if (val !== skip) {
if (val instanceof Splice) {
ret.push.apply(ret, backwards ? val.v.slice().reverse() : val.v);
} else {
@@ -145,8 +144,7 @@ var MAP = (function() {
} else {
for (i = 0; i < a.length; ++i) if (doit()) break;
}
}
else {
} else {
for (i in a) if (HOP(a, i)) if (doit()) break;
}
return top.concat(ret);