JSPM

is-async-iterable

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q53347F
  • License MIT

Checks if a given object is async iterable.

Package Exports

  • is-async-iterable

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-async-iterable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-async-iterable

Travis Build Status NPM downloads

Checks if a given object is async iterable.

Async iterable fun

This module is part of Async iterable fun, a complete toolset of modules to work with async iterables.

Usage

Check some objects:

const isAsyncIterable = require("is-async-iterable");
async function iter* () {
  yield 1;
  yield 2;
}

console.log(isAsyncIterable(iter));
console.log(isAsyncIterable(42));

This will output

true
false

API

isAsyncIterable

Return true if the argument is async iterable

Parameters

  • val any value to check

Returns Boolean true if the value is async iterable

Install

With npm installed, run

npm install --save is-async-iterable

See Also

License

MIT