export function isArray < T = any > ( x ) { return Array . isArray ( x ) ; } export function isString ( x ) { return typeof x === 'string' ; } export function isNumber ( x ) { return typeof x === 'number' && ! Number . isNaN ( x ) ; } export function isFunction ( x ) { return typeof x === 'function' ; }