# uinix-fp-prop

> uinix fp object prop utility

Latest version **1.0.0** (published 2021-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install uinix-fp-prop
pnpm add uinix-fp-prop
yarn add uinix-fp-prop
bun add uinix-fp-prop
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-22 |
| First published | 2021-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Chris Zhou |
| Maintainers | chrisrzhou |
| Keywords | uinix, fp, utility, prop |

## Links

- npm: https://www.npmjs.com/package/uinix-fp-prop
- Repository: https://github.com/uinix-js/uinix-fp/tree/main/packages/uinix-fp-prop
- Issues: https://github.com/uinix-js/uinix-fp/issues
- Funding: https://github.com/sponsors/uinix-js
- npm.io page: https://npm.io/package/uinix-fp-prop

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-11-22

## README

# uinix-fp-prop

[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][bundle-size-badge]][bundle-size]

[`uinix-fp`][uinix-fp] object prop utility.

---

## Install

This package is [ESM-only][] and requires Node 12+.

```sh
npm install uinix-fp-prop
```

## Use

`prop` is a curried function returning the value of the specified object property.

```js
import {prop} from 'uinix-fp-prop';

const user = {
  firstName: 'Jesse',
  lastName: 'Pinkman',
};

prop('firstName')(user); // 'Jesse'
prop('lastName')(user); // 'Pinkman'
prop('age')(user); // undefined

const propFirstName = prop('firstName'); // curried

[user, user, user].map(propFirstName); ['Jesse', 'Jesse', 'Jesse'];
```

## API

This package exports the following identifiers: `prop`.  There is no default export.

### `prop(property)(object)`

###### Parameters (Curried)
- `property` (`string`) — An object property.
- `object` (`object`) — The provided object.

###### Returns
- `any` — The object value for the specified property.

## License

[MIT][license] © [Chris Zhou][author]

<!-- project -->
[author]: https://github.com/chrisrzhou
[license]: https://github.com/uinix-js/uinix-fp/blob/main/license
[build]: https://github.com/uinix-js/uinix-fp/actions
[build-badge]: https://github.com/uinix-js/uinix-fp/workflows/main/badge.svg
[coverage]: https://codecov.io/github/uinix-js/uinix-fp
[coverage-badge]: https://img.shields.io/codecov/c/github/uinix-js/uinix-fp.svg
[downloads]: https://www.npmjs.com/package/uinix-fp-prop
[downloads-badge]: https://img.shields.io/npm/dm/uinix-fp-prop.svg
[bundle-size]: https://bundlephobia.com/result?p=uinix-fp-prop
[bundle-size-badge]: https://img.shields.io/bundlephobia/minzip/uinix-fp-prop.svg

<!-- defs -->
[ESM-only]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
[uinix-fp]: https://github.com/uinix-js/uinix-fp

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