Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "conclure", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Generator runner", | ||
@@ -5,0 +5,0 @@ "main": "src/conclude.js", |
import { TYPE } from './effects'; | ||
export function isIterator(obj) { | ||
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.next === 'function'; | ||
return !!obj && (typeof obj === 'object' || typeof obj === 'function') | ||
&& typeof obj.next === 'function' | ||
&& typeof obj.throw === 'function'; | ||
} | ||
export function isPromise(obj) { | ||
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function' && typeof obj.catch === 'function'; | ||
return !!obj && (typeof obj === 'object' || typeof obj === 'function') | ||
&& typeof obj.then === 'function' | ||
&& typeof obj.catch === 'function'; | ||
} | ||
@@ -10,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28335
584