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

lodash-pickdeep

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-pickdeep

A lodash mixin to add a `pickDeep` function

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
144K
decreased by-9.93%
Maintainers
1
Weekly downloads
 
Created
Source

lodash-pickDeep

GitHub Latest Release Build Status Coverage Status Dependency Status Dev Dependency Status

A lodash mixin to add a pickDeep function.

Install

$ npm install --save lodash-pickdeep

Usage

Using it as a lodash mixin
var _ = require('lodash');
var pickDeep = require('lodash-pickdeep');

_.mixin( { pickDeep: pickDeep }, { chain: true } );

_.pickDeep( { a: { b: { c: 'foo', d: 'bar', e: { f: 'baz' } } } }, [ 'a.b.c', 'a.b.e' ] );
// =>  { a: { b: { c: 'foo', e: { f: 'baz' } } } }
Using it on its own
var pickDeep = require('lodash-pickdeep');

pickDeep( { a: { b: { c: 'foo', d: 'bar', e: { f: 'baz' } } } }, [ 'a.b.c', 'a.b.e' ] );
// =>  { a: { b: { c: 'foo', e: { f: 'baz' } } } }

API Documentation

_.pickDeep(object, [props])

Creates an object composed of the picked object properties, which may contain deep property identifiers.

Arguments
  1. object (Object): The source object.
  2. [props] (...(string|string[]): The property identifiers to pick, specified individually or in arrays.
Returns

(Object): Returns the new object.

License

Copyright (c) 2016, James M. Greene (MIT License)

Keywords

FAQs

Package last updated on 01 Apr 2016

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