Skip to content

Commit d27a629

Browse files
committed
Add usage with arguments example
1 parent 9e82ed7 commit d27a629

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]);
2222

2323
flatten([1, [2, [3, [4, [5], 6], 7], 8], 9], 2);
2424
//=> [1, 2, 3, [4, [5], 6], 7, 8, 9]
25+
26+
(function () {
27+
flatten(arguments); //=> [1, 2, 3]
28+
})(1, [2, 3]);
2529
```
2630

2731
## License

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
},
1717
"keywords": [
1818
"array",
19-
"flatten"
19+
"flatten",
20+
"arguments"
2021
],
2122
"author": {
2223
"name": "Blake Embrey",

0 commit comments

Comments
 (0)