diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-01-05 21:17:39 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-01-05 21:17:39 +0000 |
commit | 77488adcc8275699d737b17909c8f79e4b50469c (patch) | |
tree | 0bf0ac520a82af919db44f4ab1bd0beded6ded0a /2703/main.js | |
parent | 2629 (diff) | |
download | leetcode-77488adcc8275699d737b17909c8f79e4b50469c.tar.gz leetcode-77488adcc8275699d737b17909c8f79e4b50469c.zip |
2703
Diffstat (limited to '')
-rwxr-xr-x | 2703/main.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2703/main.js b/2703/main.js new file mode 100755 index 0000000..6e02ccf --- /dev/null +++ b/2703/main.js @@ -0,0 +1,14 @@ +#!/usr/bin/env node +"use strict"; + +/** + * @param {...(null|boolean|number|string|Array|Object)} args + * @return {number} + */ +var argumentsLength = function (...args) { + return args.length; +}; + +/** + * argumentsLength(1, 2, 3); // 3 + */ |