Created
August 9, 2022 23:22
-
-
Save jrsinclair/7391db065b0ad8823ed0c856273a2d97 to your computer and use it in GitHub Desktop.
A mutating version of concat. Do not recommend using this unless absolutely necessary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dangerousPushAll = (xs, ys) => { | |
for (const y in ys) { | |
xs.push(y); | |
} | |
return xs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment