d64ff246ab3d89f9191a6f0ca9ea2bc1f14fbf3c81ce80301000f53965be7875.json 779 B

1
  1. {"ast":null,"code":"import before from './before.js';\n\n/**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\nfunction once(func) {\n return before(2, func);\n}\nexport default once;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}