fjs.truthy object

fjs.truthy

fjs.truthy returns true if an object can be coerced to true in a boolean context.

Usage

fjs.truthy(obj);

Examples

expect(fjs.truthy(false); // => false
expect(fjs.truthy(null); // => false
expect(fjs.truthy(true); // => true
expect(fjs.truthy("abc"); // => true