Created by Paweł Targoński
almost 7 years ago
|
||
Question | Answer |
Array.prototype.slice() | The slice() method returns a shallow copy of a portion of an array into a new array object selected from begin to end (end not included). The original array will not be modified. |
Array.prototype.filter() | The filter() method creates a new array with all elements that pass the test implemented by the provided function. |
Array.prototype.indexOf() | The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. |
Array.prototype.concat() | The concat() method is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array. |
Want to create your own Flashcards for free with GoConqr? Learn more.