Booleans.isLessThan()

Determine whether the first value is less than the second.

Usage

Hover over inputs/exits for more info.

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


// Determine whether the first value is less than the second.

Booleans.isLessThan({

a: '===',

b: '===',

isInclusive: true,

}).execSync();

Inputs

a required

The first value to check (expected to be less than the second).

'==='
b required

The second value to check (expected to be less than the first).

'==='
isInclusive

Whether to return 'true' if both values are equal.

true

Exits

error

An unexpected error occurred.

success

OK.

true