existential

The missing existential operator for JavaScript. Returns true unless a variable is null or undefined

MIT 5 个版本
安装
npm install existential
yarn add existential
pnpm add existential
bun add existential
README

Existential

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

The missing existential operator for JavaScript. Returns true unless a variable is null or undefined.

Install

npm install existential

If you want to use in the browser (powered by Browserify):

bower install existential --save

and later link in your HTML:

<script src="bower_components/existential/dist/existential.js"></script>

Usage

var exists = require('existential');

console.log(exists(null));
// => false

console.log(exists('hello world'));
// => true

License

MIT © Kiko Beats

版本列表
1.0.3 2015-11-30
1.0.2 2015-11-25
1.0.1 2015-05-10
1.0.0 2015-03-17
0.0.0 2015-03-17