Skip to content

Miscellaneous helpers

typeOf

Get the native type of the given value

Parameters:

  • value {any}

Returns {String}: Returns the type of value.

Example:

{{typeOf 1}}
//=> 'number'
{{typeOf "1"}}
//=> 'string'
{{typeOf "foo"}}
//=> 'string'