Skip to content

Commit e3cccc3

Browse files
committed
perf(array): use push() instead of concat() for $push atomics re: #11380
1 parent 6def405 commit e3cccc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/types/array/methods/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ const methods = {
374374
if (val != null && utils.hasUserDefinedProperty(val, '$each')) {
375375
atomics.$push = val;
376376
} else {
377-
atomics.$push.$each = atomics.$push.$each.concat(val);
377+
atomics.$push.$each.push(val);
378378
}
379379
} else {
380380
atomics[op] = val;

0 commit comments

Comments
 (0)