const is = ( value , type ) : boolean => typeof value === type ; export const string = ( value ) : value is string => is ( value , 'string' ) ; export const object = ( value ) : value is object => value != null && is ( value , 'object' ) ; export const array = Array . isArray ; const fn = < T extends Function > ( value ) : value is T => is ( value , 'function' ) ; export { fn as function } ;