Socket
Book a DemoInstallSign in
Socket

is-false

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-false

Returns false if the value of a property is either strictly false, or it's inverse is strictly true.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

is-false NPM version

Returns false if the value of a property is either strictly false, or it's inverse is strictly true.

Install

Install with npm

$ npm i is-false --save

Usage

Returns true if a property is strictly false or its inverse is strictly true. The inverse of a is noa, the inverse of b is nob, and so on.

Examples

var isFalse = require('is-false');

isFalse({a: false}, 'a');
//=> true

isFalse({noa: true}, 'a');
//=> true

Conflicts

When both a property and its inverse exist, true is always returned unless both values evaluate to true (remember that this repo is named isFalse ;)

isFalse({noa: true, a: false}, 'a');
//=> true

isFalse({noa: true, a: true}, 'a');
//=> true

isFalse({noa: false, a: false}, 'a');
//=> true

isFalse({noa: false, a: true}, 'a');
//=> false
  • is-true: Returns true if the value of an object's property is strictly true, or it's inverse… more
  • is-plain-object: Returns true if an object was created by the Object constructor.
  • isobject: Returns true if the value is an object and not an array or null.
  • is-primitive: Returns true if the value is a primitive.

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.

This file was generated by verb-cli on May 25, 2015.

Keywords

boolean

FAQs

Package last updated on 25 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts