# sc-pick

> Pick specified keys from an object

Latest version **0.0.1** (published 2014-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install sc-pick
pnpm add sc-pick
yarn add sc-pick
bun add sc-pick
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-02-12 |
| First published | 2014-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | David Tsuji |
| Maintainers | sitecore |

## Links

- npm: https://www.npmjs.com/package/sc-pick
- npm.io page: https://npm.io/package/sc-pick

## Recent versions

- 0.0.1 (latest) — 2014-02-12
- 0.0.0 — 2014-02-12

## README

# TOC
   - [pick(object:Object, keys:Array)](#pickobjectobject-keysarray)
<a name=""></a>
 
<a name="pickobjectobject-keysarray"></a>
# pick(object:Object, keys:Array)
example.

```js
var testObject = {
	name: "David",
	__privateProperty: "booya",
	country: "Australia"
};
var newObject = pick( testObject, [ "name", "country" ] );
Object.keys( newObject ).should.have.lengthOf( 2 );
newObject.should.have.a.property( "name", testObject.name );
newObject.should.have.a.property( "country", testObject.country );
newObject.should.not.have.a.property( "__privateProperty" );
```

---
_Source: https://npm.io/package/sc-pick · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
