Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: use <array>.push and <array>.unshift instead of <array>.concat #37239

Merged
merged 1 commit into from
Feb 26, 2021

Commits on Feb 26, 2021

  1. lib: use <array>.push and <array>.unshift instead of <array>.concat

    Using `push` and `unshift` methods is more performant than reassigning a
    new array created with `concat`.
    
    PR-URL: nodejs#37239
    Reviewed-By: James M Snell <jasnell@gmail.com>
    aduh95 committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    83cce87 View commit details
    Browse the repository at this point in the history