@types/object.pick
@types/object.pick
npm i @types/object.pick
@types/object.pick

@types/object.pick

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

1.3.2 (see all)License:MITTypeScript:Built-In
npm i @types/object.pick
Readme

Installation

npm install --save @types/object.pick

Summary

This package contains type definitions for object.pick (https://github.com/jonschlinkert/object.pick).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object.pick.

index.d.ts

// Type definitions for object.pick 1.3
// Project: https://github.com/jonschlinkert/object.pick
// Definitions by: Ifiok Jr. <https://github.com/ifiokjr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

/**
 * Returns a filtered copy of an object with only the specified keys, similar to `_.pick` from lodash / underscore.
 *
 * @param object
 * @param keys
 */
declare function pick<T extends object, U extends keyof T>(object: T, keys: readonly U[]): Pick<T, U>;

export = pick;

Additional Details

  • Last updated: Tue, 24 May 2022 19:01:55 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ifiok Jr..

Downloads/wk

40.2K

GitHub Stars

41K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

637

OPEN PRs

201
VersionTagPublished
1.3.2
latest
4mos ago
1.3.2
ts4.7
4mos ago
1.3.2
ts4.6
4mos ago
1.3.2
ts4.8
4mos ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate