# exists

> exists and allExist functions. plain and simple

Latest version **1.0.1** (published 2017-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install exists
pnpm add exists
yarn add exists
bun add exists
```

## 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.0.1 |
| Published | 2017-02-04 |
| First published | 2014-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Tejesh Mehta |
| Maintainers | tjmehta |
| Keywords | exists, exist, util, check, utils, undefined, null, allExist, allExists |

## Links

- npm: https://www.npmjs.com/package/exists
- Repository: https://github.com/tjmehta/exists
- Issues: https://github.com/tjmehta/exists/issues
- npm.io page: https://npm.io/package/exists

## 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.1 (latest) — 2017-02-04
- 1.0.0 — 2014-03-28

## README

exists
======

node exists function. plain and simple.

## exists(thing)

returns true for anything other than null or undefined

```js
var exists = require('exists');

exists(null);      // false
exists(undefined); // false
exists({});        // true
exists([]);        // true
exists('');        // true
exists(false);     // true
```

## exists.allExist(thing)

returns true if all arguments are not null or undefined

```js
var allExist = require('exists').allExist;

allExist(null, undefined);   // false
allExist({}, [], '', false); // true
allExist({}, null)  ;        // false
```

## License
MIT

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