utils

Functions

isBase64(val)boolean

Check if the value is a valid base64 encoded string.

isJson(val)boolean

Check if the value is a valid JSON encoded string.

isBase64(val) ⇒ boolean

Check if the value is a valid base64 encoded string.

Kind: global function
Returns: boolean - true if it is valid base64 encoded, false otherwise

ParamType
valstring

isJson(val) ⇒ boolean

Check if the value is a valid JSON encoded string.

Kind: global function
Returns: boolean - true if the value is valid JSON, false otherwise

ParamType
valstring