type-plus
Advanced tools
Comparing version 1.1.1 to 1.1.2
export declare function findKey<T>(subject: T, predicate: (this: void, key: keyof T, index: number, obj: (keyof T)[]) => key is keyof T, thisArg?: any): keyof T | undefined; | ||
export declare function findKey<T>(subject: T, predicate: (key: keyof T, index: number, obj: (keyof T)[]) => boolean, thisArg?: any): keyof TypeError | undefined; | ||
export declare function findKey<T>(subject: T, predicate: (key: keyof T, index: number, obj: (keyof T)[]) => boolean, thisArg?: any): keyof T | undefined; |
{ | ||
"name": "type-plus", | ||
"description": "Provides additional types for `typescript`.", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"homepage": "https://github.com/unional/type-plus", | ||
@@ -6,0 +6,0 @@ "bugs": { |
export function findKey<T>(subject: T, predicate: (this: void, key: keyof T, index: number, obj: (keyof T)[]) => key is keyof T, thisArg?: any): keyof T | undefined | ||
export function findKey<T>(subject: T, predicate: (key: keyof T, index: number, obj: (keyof T)[]) => boolean, thisArg?: any): keyof TypeError | undefined | ||
export function findKey<T>(subject: T, predicate: (key: keyof T, index: number, obj: (keyof T)[]) => boolean, thisArg?: any): keyof T | undefined | ||
export function findKey<T>(subject: T, predicate: any, thisArg?: any) { | ||
return Object.keys(subject).find(predicate, thisArg) | ||
} |
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
18884