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.
1 parent 1e56c03 commit 55e793dCopy full SHA for 55e793d
src/Data/Array.js
@@ -188,6 +188,12 @@ exports.reverse = function (l) {
188
};
189
190
exports.concat = function (xss) {
191
+ if (xss.length <= 10000) {
192
+ // This method is faster, but it crashes on big arrays.
193
+ // So we use it when can and fallback to simple variant otherwise.
194
+ return Array.prototype.concat.apply([], xss);
195
+ }
196
+
197
var result = [];
198
for (var i = 0, l = xss.length; i < l; i++) {
199
var xs = xss[i];
0 commit comments