Is there any way to performantly merge one array into another in Javascript?
2
1kṀ600Oct 13
45%
chance
1H
6H
1D
1W
1M
ALL
I have spent a while looking and it appears the answer is no. But maybe there's some low-level API that makes it possible?
For "performant" let's say at least as fast as Array.concat, since that's an existence proof that JS's general data model is capable of handling this sort of thing that quickly.
Resolves NO if no one provides such a way before close.
This question is managed and resolved by Manifold.
Get
1,000 to start trading!
Sort by:
@NayutaIto That creates a new array, it does not add one to the other. It's also about 5x slower than Array.concat, so I don't know why I would ever want to use it for that task either.