Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-plus

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-plus - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

lib/findKey.d.ts
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)
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc