Last active
August 27, 2018 14:37
-
-
Save oleersoy/de18c597b219a9ff42776268b04c4e13 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* 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