Skip to content

Commit

Permalink
arguments -> ...args
Browse files Browse the repository at this point in the history
  • Loading branch information
Isiah Meadows authored Aug 24, 2016
1 parent a97e5b9 commit c993578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,8 @@ Most of utilities are found by native API. Others advanced functions could be ch

// Native
// But concat function doesn't remove duplicate items.
function merge() {
return Array.prototype.concat.apply([], arguments);
function merge(...args) {
return [].concat(...args)
}
```

Expand Down

0 comments on commit c993578

Please sign in to comment.