CommentAug 22, 2022
Is there a reason you'd want to write a function to wrap array.push() in this manner? You've actually made a worse option as array.push will accept multiple arguments, or you can pass it an entire array with the spread operator.