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

object.pick

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object.pick

Returns a filtered copy of an object with only the specified keys, like `pick` from lo-dash / underscore.

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.6M
decreased by-60.12%
Maintainers
1
Weekly downloads
 
Created

What is object.pick?

The object.pick npm package is a utility that allows users to create a new object by picking specific properties from an existing object. This can be particularly useful for filtering out unwanted properties from objects or creating new objects that only contain relevant data.

What are object.pick's main functionalities?

Picking properties from an object

This feature allows you to select which properties to include in a new object from the original object. It is useful for extracting necessary data and leaving out the rest.

{"const pick = require('object.pick');\nconst object = { a: 1, b: '2', c: 3 };\nconst picked = pick(object, ['a', 'c']);\nconsole.log(picked); // Output: { a: 1, c: 3 }"}

Other packages similar to object.pick

Keywords

FAQs

Package last updated on 14 Feb 2015

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