Search results
66 packages found
Elvis operator functionality for JavaScript.
Javascript library for testing truthiness of anything. Coerce string booleans into true booleans. Truthyness is not the same as equality!
Convert property values in objects to booleans.
Filter an object, preserving only truthy values
Utilities and types to help with simple Boolean checks
Creates an array of the own enumerable property names of an object for which the values are truthy.
Returns true if a value is an `affirmative` value (from the affirmative lib). Useful for CLI prompts.
Functions to simplify/normalize rules with the ability to leverage monads and applicative functors over traditional control structures.
Creates an object composed of the object properties for which predicate returns truthy.
Creates an object composed of the object properties for which predicate returns truthy.
Resolves a simple string or a potentially deeply nested structure of primitive values into a simple string array.
Returns a new object with ALL object properties with [falsy values](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) removed. ## Install ```sh npm install only-truthy ```
Checks if the callback returns truthy for any element of the array. Iteration is stopped once the callback returns truthy Return the truthy value or the last falsy value if none of the iteration returns truthy Run over the given array from right to
- some
- truthy
- right
- some-truthy
- some-right
- truthy-some
- truthy-right
- right-some
- right-truthy
- some-truthy-right
- some-right-truthy
- truthy-some-right
- truthy-right-some
- right-some-truthy
Checks if the callback returns truthy for any element of the array. Iteration is stopped once the callback returns truthy Return the truthy value or the last falsy value if none of the iteration returns truthy
Returns true if the callback returns truthy for all elements in the given array.
This is a type confirmation module
Detect whether a value is falsy.
Count the number of elements in an array which pass a test implemented by a predicate function.
Check if the value is not undefined, null, empty string, NaN and Infinity.
Determine if a given value is "truthy"