8000 correct the term spread operator to rest operator + reduce the space … · unconnect/javascript-exercises@5b56878 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b56878

Browse files
committed
correct the term spread operator to rest operator + reduce the space between . and If
1 parent 56ebfc0 commit 5b56878

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)
0