8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56ebfc0 + 5b56878 commit 8150be9Copy full SHA for 8150be9
removeFromArray/removeFromArray.js
@@ -1,6 +1,6 @@
1
// we have 2 solutions here, an easier one and a more advanced one.
2
// The easiest way to get an array of all of the arguments that are passed to a function
3
-// is using the spread operator. If this is unfamiliar to you look it up!
+// is using the rest operator. If this is unfamiliar to you look it up!
4
const removeFromArray = function (...args) {
5
// the very first item in our list of arguments is the array, we pull it out with args[0]
6
const array = args[0];
0 commit comments