We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cb437b + 55e793d commit 60b7e2eCopy full SHA for 60b7e2e
src/Data/Array.js
@@ -203,6 +203,12 @@ exports.reverse = function (l) {
203
};
204
205
exports.concat = function (xss) {
206
+ if (xss.length <= 10000) {
207
+ // This method is faster, but it crashes on big arrays.
208
+ // So we use it when can and fallback to simple variant otherwise.
209
+ return Array.prototype.concat.apply([], xss);
210
+ }
211
+
212
var result = [];
213
for (var i = 0, l = xss.length; i < l; i++) {
214
var xs = xss[i];
0 commit comments