Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Last active August 27, 2018 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleersoy/de18c597b219a9ff42776268b04c4e13 to your computer and use it in GitHub Desktop.
Save oleersoy/de18c597b219a9ff42776268b04c4e13 to your computer and use it in GitHub Desktop.
/**
* Pushes the elements onto the end of the array.
*
* @param original The original array
* @param elementN The arguments to be inserted
* @return The result array
*
@example
<pre>
const original = ['a', 'b'];
const result = ['a', 'b', 'c', 'd'];
expect(push(original, 'c', 'd')).to.eql(result);
</pre>
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment