.toStr()

Description

toStr returns the input value as a string

Parameters

toStr takes no parameters

Usage

log true.toStr()
// "true"

log "10".toStr()
// "10"

log -40.toStr()
// "-40"

log ["hello","10"].toStr()
// as a json string: ["hello","10"]
// .toStr will automatically do .JsonStringify()

Last updated