aboutsummaryrefslogtreecommitdiffstats
path: root/2703/main.js
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-01-05 21:17:39 +0000
committerterminaldweller <devi@terminaldweller.com>2024-01-05 21:17:39 +0000
commit77488adcc8275699d737b17909c8f79e4b50469c (patch)
tree0bf0ac520a82af919db44f4ab1bd0beded6ded0a /2703/main.js
parent2629 (diff)
downloadleetcode-77488adcc8275699d737b17909c8f79e4b50469c.tar.gz
leetcode-77488adcc8275699d737b17909c8f79e4b50469c.zip
2703
Diffstat (limited to '')
-rwxr-xr-x2703/main.js14
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
+ */