Skip to content

Commit 3a5a1b5

Browse files
Create length_of_arguments.js
1 parent 63a1249 commit 3a5a1b5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

length_of_arguments.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* @param {...(null|boolean|number|string|Array|Object)} args
3+
* @return {number}
4+
*/
5+
var argumentsLength = function(...args) {
6+
return args.length;
7+
};
8+
9+
/**
10+
* argumentsLength(1, 2, 3); // 3
11+
*/

0 commit comments

Comments
 (0)