Comparing version 3.0.0 to 3.0.1
@@ -187,3 +187,3 @@ /** | ||
/** | ||
* Returns true if the input is an iterable (`Map`, `Set`, `Array` etc.). | ||
* Returns true if the input is an iterable (`Map`, `Set`, `Array`, Generator etc.). | ||
* @param {*} - the input to test | ||
@@ -197,4 +197,5 @@ * @returns {boolean} | ||
} else { | ||
return typeof input[Symbol.iterator] === 'function' | ||
return typeof input[Symbol.iterator] === 'function' || | ||
typeof input[Symbol.asyncIterator] === 'function' | ||
} | ||
} |
{ | ||
"name": "typical", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Robust Javascript type-checking", | ||
@@ -38,6 +38,6 @@ "repository": "https://github.com/75lb/typical", | ||
"devDependencies": { | ||
"coveralls": "^3.0.2", | ||
"coveralls": "^3.0.3", | ||
"jsdoc-to-markdown": "^4.0.1", | ||
"test-runner": "^0.5.0" | ||
"test-runner": "^0.5.1" | ||
} | ||
} |
@@ -206,2 +206,2 @@ [![view on npm](http://img.shields.io/npm/v/typical.svg)](https://www.npmjs.org/package/typical) | ||
© 2014-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). | ||
© 2014-19 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). |
@@ -145,2 +145,3 @@ const TestRunner = require('test-runner') | ||
a.strictEqual(t.isIterable({ then: function () {} }), false) | ||
a.strictEqual(t.isIterable((function * () {})()), true) | ||
}) | ||
@@ -147,0 +148,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21009
9
361
2