Booleans.isTruthy()

Determine whether the value is "truthy".

In Javascript, all values besides 0, null, undefined, false, NaN and the empty string are "truthy".

Usage

Hover over inputs/exits for more info.

var Booleans = require('machinepack-booleans');


// Determine whether the value is "truthy".

Booleans.isTruthy({

value: '===',

}).execSync();

Inputs

value

The value to check.

'==='

Exits

error

An unexpected error occurred.

success

OK.

true