Version 1
[yaffs-website] / node_modules / uncss / node_modules / form-data / node_modules / lodash / _baseUnary.js
diff --git a/node_modules/uncss/node_modules/form-data/node_modules/lodash/_baseUnary.js b/node_modules/uncss/node_modules/form-data/node_modules/lodash/_baseUnary.js
new file mode 100644 (file)
index 0000000..98639e9
--- /dev/null
@@ -0,0 +1,14 @@
+/**
+ * The base implementation of `_.unary` without support for storing metadata.
+ *
+ * @private
+ * @param {Function} func The function to cap arguments for.
+ * @returns {Function} Returns the new capped function.
+ */
+function baseUnary(func) {
+  return function(value) {
+    return func(value);
+  };
+}
+
+module.exports = baseUnary;