just-map-values
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -1,3 +0,11 @@ | ||
// Definitions by: Roman Lerchster <https://github.com/wa4-fearless-otter> | ||
declare function map<T extends {}>(item: T, callback: (value: any, key: string, object: T) => any): {}; | ||
export default map; | ||
// Original definitions by: Roman Lerchster <https://github.com/wa4-fearless-otter> | ||
declare function mapValues<TInput extends {}, TMappedValue>( | ||
item: TInput, | ||
callback: ( | ||
value: TInput[keyof TInput], | ||
key: keyof TInput, | ||
object: TInput | ||
) => TMappedValue | ||
): { [k in keyof TInput]: ReturnType<typeof callback> }; | ||
export default mapValues; |
import map from './index' | ||
const obj = {foo: {bar: []}}; | ||
const obj = {foo: 1}; | ||
@@ -5,0 +5,0 @@ // OK |
{ | ||
"name": "just-map-values", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "map an object, predicate updates values, receives (value, key, object)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3502
45