Comparing version 2.3.0 to 2.4.0
@@ -198,3 +198,44 @@ /*! | ||
/** | ||
* Is the subject exactly false? | ||
* | ||
* @method false | ||
* @param {Object} subject | ||
*/ | ||
false: function(x) { | ||
return x === false | ||
}, | ||
/** | ||
* Is the subject falsy? | ||
* | ||
* @method false | ||
* @param {Object} subject | ||
*/ | ||
falsy: function(x) { | ||
return !x | ||
}, | ||
/** | ||
* Is the subject exactly true? | ||
* | ||
* @method true | ||
* @param {Object} subject | ||
*/ | ||
true: function(x) { | ||
return x === true | ||
}, | ||
/** | ||
* Is the subject truthy? | ||
* | ||
* @method truthy | ||
* @param {Object} subject | ||
*/ | ||
truthy: function(x) { | ||
return !!x | ||
}, | ||
// OBJECTS | ||
@@ -201,0 +242,0 @@ |
{ | ||
"name": "is-too", | ||
"description": "simple validations", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "is", |
@@ -44,2 +44,6 @@ # is-too | ||
* `undef` | ||
* `false` | ||
* `falsy` | ||
* `true` | ||
* `truthy` | ||
* Objects | ||
@@ -46,0 +50,0 @@ * `object` |
56185
27
1943
89