Skip to content

Instantly share code, notes, and snippets.

@jrsinclair
Created August 9, 2022 23:22
Show Gist options
  • Save jrsinclair/7391db065b0ad8823ed0c856273a2d97 to your computer and use it in GitHub Desktop.
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.
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