toStr returns the input value as a string
toStr takes no parameters
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 3 months ago