Skip to content

Commit 8150be9

Browse files
authored
Merge pull request TheOdinProject#189 from Yasikhorram/fix-comment-contribution
correct the term spread operator to rest operator + reduce the space between . and If
2 parents 56ebfc0 + 5b56878 commit 8150be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

removeFromArray/removeFromArray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// we have 2 solutions here, an easier one and a more advanced one.
22
// 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!
3+
// is using the rest operator. If this is unfamiliar to you look it up!
44
const removeFromArray = function (...args) {
55
// the very first item in our list of arguments is the array, we pull it out with args[0]
66
const array = args[0];

0 commit comments

Comments
 (0)