export function isDef ( val ) { return val !== undefined && val !== null ; } export function isTrue ( val ) { return val === true ; } export function isFalse ( val ) { return val === false ; } export function isObject ( obj ) { return obj !== null && typeof obj === 'object' ; } export function isArray ( obj ) { return obj !== null && Array . isArray ( obj ) ; } export function isFunction ( func ) { return typeof func === 'function' ; } export function isString ( val ) { return typeof val === 'string' ; } export function toArray ( obj ) { return Object . values ( obj ) ; } export function isNode ( arg ) { return arg && arg . nodeType ; }