summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash/function/once.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash/function/once.js')
-rw-r--r--deps/npm/node_modules/lodash/function/once.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/deps/npm/node_modules/lodash/function/once.js b/deps/npm/node_modules/lodash/function/once.js
deleted file mode 100644
index 0b5bd853cb..0000000000
--- a/deps/npm/node_modules/lodash/function/once.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var before = require('./before');
-
-/**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first call. The `func` is invoked
- * with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // `initialize` invokes `createApplication` once
- */
-function once(func) {
- return before(2, func);
-}
-
-module.exports = once;