@zodash/once
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.4](https://github.com/zcorky/zodash/compare/@zodash/once@0.1.3...@zodash/once@0.1.4) (2021-03-23) | ||
**Note:** Version bump only for package @zodash/once | ||
## 0.1.3 (2020-11-11) | ||
@@ -8,0 +16,0 @@ |
@@ -0,1 +1,9 @@ | ||
/** | ||
* Creates a function that is restricted to invoking `func` once. Repeat calls | ||
* to the function return the value of the first invocation. The `func` is | ||
* invoked with the `this` binding and arguments of the created function. | ||
* | ||
* @param fn The function to be restricted. | ||
* @return Returns the new restricted function. | ||
*/ | ||
export declare function once<T extends [], R>(fn: (...args: T) => R): (...args: T) => R; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.once = void 0; | ||
/** | ||
* Creates a function that is restricted to invoking `func` once. Repeat calls | ||
* to the function return the value of the first invocation. The `func` is | ||
* invoked with the `this` binding and arguments of the created function. | ||
* | ||
* @param fn The function to be restricted. | ||
* @return Returns the new restricted function. | ||
*/ | ||
function once(fn) { | ||
@@ -5,0 +13,0 @@ let res; |
{ | ||
"name": "@zodash/once", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Creates a function that is restricted to invoking func once. Repeat calls to the function return the value of the first invocation. The func is invoked with the this binding and arguments of the created function.", | ||
@@ -68,3 +68,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "fb0b997fc51fbad9866a754bf8609d0bcc962700" | ||
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b" | ||
} |
Sorry, the diff of this file is not supported yet
6386
7
31