@zodash/match
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/match@0.1.3...@zodash/match@0.1.4) (2021-03-23) | ||
**Note:** Version bump only for package @zodash/match | ||
## 0.1.3 (2020-11-11) | ||
@@ -8,0 +16,0 @@ |
@@ -0,1 +1,7 @@ | ||
/** | ||
* | ||
* @param data object | ||
* @param handlers reducers | ||
* @param keyFn key function | ||
*/ | ||
export declare function match<T, R>(data: T, handlers: Record<string, (d: T) => R>, keyFn: (data: T) => string): R | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.match = void 0; | ||
/** | ||
* | ||
* @param data object | ||
* @param handlers reducers | ||
* @param keyFn key function | ||
*/ | ||
function match(data, handlers, keyFn) { | ||
@@ -5,0 +11,0 @@ const key = keyFn(data); |
{ | ||
"name": "@zodash/match", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "match data, handlers with match key function", | ||
@@ -71,3 +71,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "fb0b997fc51fbad9866a754bf8609d0bcc962700" | ||
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b" | ||
} |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6898
7
21
0