Returns false if the value of a property is either strictly false, or it's inverse is strictly true.
Install with npm
$ npm i is-false --save
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
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
true if the value of an object's property is strictly true, or it's inverse… moreObject constructor.true if the value is a primitive.Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on May 25, 2015.