# @outofsync/lodash-ex

> Pragmatic utility extensions for Lodash

Latest version **1.3.2** (published 2019-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @outofsync/lodash-ex
pnpm add @outofsync/lodash-ex
yarn add @outofsync/lodash-ex
bun add @outofsync/lodash-ex
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.2 |
| Published | 2019-08-30 |
| First published | 2019-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jay Reardon |
| Maintainers | chronosis |
| Keywords | lodash, extension, utility |

## Links

- npm: https://www.npmjs.com/package/@outofsync/lodash-ex
- Repository: https://github.com/OutOfSyncStudios/lodash-ex
- Homepage: https://github.com/OutOfSyncStudios/lodash-ex#readme
- Issues: https://github.com/OutOfSyncStudios/lodash-ex/issues
- npm.io page: https://npm.io/package/@outofsync/lodash-ex

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15

## 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.3.2 (latest) — 2019-08-30
- 1.3.1 — 2019-08-30
- 1.3.0 — 2019-08-30

## README

# lodash-ex

[![NPM](https://nodei.co/npm/@outofsync/lodash-ex.png?downloads=true)](https://nodei.co/npm/@outofsync/lodash-ex/)

[![Actual version published on npm](http://img.shields.io/npm/v/@outofsync/lodash-ex.svg)](https://www.npmjs.org/package/@outofsync/lodash-ex)
[![Travis build status](https://travis-ci.org/OutOfSyncStudios/lodash-ex.svg)](https://www.npmjs.org/package/@outofsync/lodash-ex)
[![Total npm module downloads](http://img.shields.io/npm/dt/@outofsync/lodash-ex.svg)](https://www.npmjs.org/package/@outofsync/lodash-ex)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e60352058157440f8daf9135749f0f51)](https://www.codacy.com/app/OutOfSyncStudios/lodash-ex?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=OutOfSyncStudios/lodash-ex&amp;utm_campaign=Badge_Grade)
[![Codacy Coverage Badge](https://api.codacy.com/project/badge/Coverage/e60352058157440f8daf9135749f0f51)](https://www.codacy.com/app/OutOfSyncStudios/lodash-ex?utm_source=github.com&utm_medium=referral&utm_content=OutOfSyncStudios/lodash-ex&utm_campaign=Badge_Coverage)
[![Dependencies badge](https://david-dm.org/OutOfSyncStudios/lodash-ex/status.svg)](https://david-dm.org/OutOfSyncStudios/lodash-ex?view=list)


Simple and useful utility extensions for Lodash.

<a name="installation"></a>
# [Installation](#installation)

```shell
  npm install @outofsync/lodash-ex
```

<a name="usage"></a>
# [Usage](#usage)
lodash-ex replaces and extends lodash, so it only the lodash-ex module needs to be included in your code:

```js
  const _ = require('@outofsync/lodash-ex');

  const data = { a: 'a', b: 'b' };
  // Use lodash as you normally would
  console.log(_.pick(data, ['a']);
```

<a name="api"></a>
# [API Reference](#api)

## _.isUnset(value) &#x27fe; boolean
Tests if the value provided is `null` or `undefined`

```js
  _.isUnset(null);
  _.isUnset(undefined);
  _.isUnset(false);
```

**Results**:
```
  true
  true
  false
```

## _.hasValue(value) &#x27fe; boolean
Tests if the value provided is not `null` or `undefined`

```js
  _.hasValue(null);
  _.hasValue(undefined);
  _.hasValue(false);
```

**Results**:
```
  false
  false
  true
```

## _.implies(a, b) &#x27fe; boolean
Test the logic imply operation a => b, providing the following truth table:

| A | B | Result |
| - | - | ------ |
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |

## _.bool(value) &#x27fe; boolean
Coerces the `value` provided to a boolean value.

```js
  _.bool(false);
  _.bool(0);
  _.bool(0.0);
  _.bool('');
  _.bool(null);
  _.bool(undefined);
  _.bool(true);
  _.bool(1);
  _.bool(3.14);
  _.bool('abcd');
  _.bool([]);
  _.bool({});
  _.bool(() => {}));
```

**Results**:
```
  false
  false
  false
  false
  false
  false
  true
  true
  true
  true
  true
  true
  true
```

<a name="license"></a>
# [License](#license)

Copyright (c) 2018,2019 Jay Reardon -- Licensed under the MIT license.

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