New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lavadrop/pick

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lavadrop/pick

Creates an object composed of the picked object properties.

  • 0.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

@lavadrop/pick

npm license Travis Build Status codecov Try @lavadrop/pick on RunKit

Part of a library of zero-dependency npm modules that do just one thing.

npm

min + gzip | 99 bytes

source

Creates an object composed of the picked object properties.

Usage

import pick from '@lavadrop/pick'

const obj = { a: 1, b: 2, c: 3 }
pick(obj, 'a', 'c')
// => { a: 1, c: 3 }

Parameters

NameTypeDescription
objectTThe source object.
pathsK[]The property paths to pick.

Type parameters

NameConstraint
Tobject
Kkeyof T

Returns

A new object composed of the picked object properties.

Return type

Partial<Pick<T, K>>

Keywords

FAQs

Package last updated on 25 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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