Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (6 sloc) 316 Bytes
const isObject = (obj: any) =>
typeof obj === 'object' && obj !== null && !Array.isArray(obj);
const isFunction = (func: any) => typeof func === 'function';
const isGeneratorLike = (obj: any) =>
isObject(obj) && isFunction(obj.next) && isFunction(obj.throw);
export { isObject, isFunction, isGeneratorLike };