Um momento
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
*/
Gostou da aula? 😆👍
Apoie nosso trabalho com uma doação: