Skip to content

Commit b3607e5

Browse files
committed
Add solution #2703
1 parent deb0cd1 commit b3607e5

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@
385385
2627|[Debounce](./2627-debounce.js)|Medium|
386386
2629|[Function Composition](./2629-function-composition.js)|Easy|
387387
2630|[Memoize II](./2630-memoize-ii.js)|Hard|
388+
2703|[Return Length of Arguments Passed](./2703-return-length-of-arguments-passed.js)|Easy|
388389
3110|[Score of a String](./3110-score-of-a-string.js)|Easy|
389390
3392|[Count Subarrays of Length Three With a Condition](./3392-count-subarrays-of-length-three-with-a-condition.js)|Easy|
390391
3396|[Minimum Number of Operations to Make Elements in Array Distinct](./3396-minimum-number-of-operations-to-make-elements-in-array-distinct.js)|Easy|
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* 2703. Return Length of Arguments Passed
3+
* https://leetcode.com/problems/return-length-of-arguments-passed/
4+
* Difficulty: Easy
5+
*
6+
* Write a function argumentsLength that returns the count of arguments passed to it.
7+
*/
8+
9+
/**
10+
* @param {...(null|boolean|number|string|Array|Object)} args
11+
* @return {number}
12+
*/
13+
var argumentsLength = function(...args) {
14+
return args.length;
15+
};

0 commit comments

Comments
 (0)