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.
boolean
isBase64(val) ⇒ Check if the value is a valid base64 encoded string.
Kind: global function
Returns: boolean
- true
if it is valid base64 encoded, false
otherwise
Param | Type |
---|---|
val | string |
boolean
isJson(val) ⇒ Check if the value is a valid JSON encoded string.
Kind: global function
Returns: boolean
- true
if the value is valid JSON, false
otherwise
Param | Type |
---|---|
val | string |