utils.string.isBoolean

isBoolean(str: string) → {boolean}

returns true if the given string contains a true or false

Parameters:
Name Type Description
str string

the string to be tested

Returns:
Type Description
boolean

true if the string is either true or false

Powered by webdoc!