UNPKG

672 BPlain TextView Raw
1export const isString = (x: unknown): x is string => typeof x === 'string'
2export const isBoolean = (x: unknown): x is boolean => typeof x === 'boolean'
3export const isFunction = (x: unknown): x is Function => typeof x === 'function'
4export const isObject = (params: any): params is object => typeof params === 'object' && params !== null
5export const ERROR = 'Error'
6export const undefined = void 0
7export const Object_setPrototypeOf = Object.setPrototypeOf
8export const Promise_reject = (x: any) => Promise.reject(x)
9export const Promise_resolve = <T>(x: T) => Promise.resolve(x)
10export const isArray = Array.isArray
11export const replayFunction = () => '() => replay()'