Booleans.isDefined()

Determine whether the value is defined.

Returns `true` for any value other than `undefined`.

Usage

Hover over inputs/exits for more info.

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


// Determine whether the value is defined.

Booleans.isDefined({

value: '===',

}).execSync();

Inputs

value

The value to check.

'==='

Exits

error

An unexpected error occurred.

success

OK.

true