Leetcode / 2703. Return Length of Arguments Passed
Pick a programming language:
Here is the source code for the solution to this problem.
/**
* @param {...(null|boolean|number|string|Array|Object)} args
* @return {number}
*/
var argumentsLength = function(...args) {
return args.length;
};
/**
* argumentsLength(1, 2, 3); // 3
*/
Did you like the lesson? 😆👍
Consider a donation to support our work: