import { Dict } from '../types' ; export function isNumber ( value ) { return typeof value === 'number' ; } export function isArray < T > ( value ) { return Array . isArray ( value ) ; } export function isFunction ( value ) { return typeof value === 'function' ; } export const isObject = ( value ) : value is Dict => { const type = typeof value ; return value != null && ( type === 'object' || type === 'function' ) && ! isArray ( value ) ; } ; export const isNull = ( value ) : value is null => value == null ;