Skip to content

Commit

Permalink
Merge pull request #112 from jacobangel/master
Browse files Browse the repository at this point in the history
Make Array.from more Minifier friendly.
  • Loading branch information
zloirock committed Sep 24, 2015
2 parents 4861ad1 + f99b822 commit 3685855
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/es6.array.from.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ $def($def.S + $def.F * !require('./$.iter-detect')(function(iter){ Array.from(it
result[index] = mapping ? call(iterator, mapfn, [step.value, index], true) : step.value;
}
} else {
for(result = new C(length = toLength(O.length)); length > index; index++){
length = toLength(O.length);
for(result = new C(length); length > index; index++){
result[index] = mapping ? mapfn(O[index], index) : O[index];
}
}
result.length = index;
return result;
}
});
});

0 comments on commit 3685855

Please sign in to comment.