Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

pick-values

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

pick-values

Pick an array of values out of an object.

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

pick-values

Travis Build Status

Pick an array of values out of an object.

Usage

var pickValues = require('pick-values');

var result = pickValues({ hello: 'world', foo: 'bar' }, ['hello', 'foo']);
//-> ['world', 'bar']

API

pickValues(object, keys)

Takes an object and an array (or single string) of keys. Returns an ordered array of values from each of the specified keys.

License

MIT

Keywords

pick

FAQs

Package last updated on 17 Jan 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