Strings.construct()

Cast the specified value to a string, if it isn't one already.

Behind the scenes, this uses RTTC data type coercion. For example, 5 is converted to "5".

Usage

Hover over inputs/exits for more info.

var Strings = require('machinepack-strings');


// Cast the specified value to a string, if it isn't one already.

Strings.construct({

value: '===',

}).execSync();

Inputs

value required

The value to convert

'==='

Exits

error

An unexpected error occurred.

success

OK.

'some string'