const toString = Object . prototype . toString ; export function defined ( value ) { return typeof value !== 'undefined' ; } export function boolean ( value ) { return value === true || value === false ; } export function string ( value ) { return toString . call ( value ) === '[object String]' ; }