aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/_lib/requiredArgs
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/date-fns/_lib/requiredArgs')
-rw-r--r--node_modules/date-fns/_lib/requiredArgs/index.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/date-fns/_lib/requiredArgs/index.js b/node_modules/date-fns/_lib/requiredArgs/index.js
new file mode 100644
index 0000000..49f0b17
--- /dev/null
+++ b/node_modules/date-fns/_lib/requiredArgs/index.js
@@ -0,0 +1,12 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = requiredArgs;
+function requiredArgs(required, args) {
+ if (args.length < required) {
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
+ }
+}
+module.exports = exports.default; \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage