time-to-botec/squiggle/node_modules/@stdlib/symbol/async-iterator
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00
..
docs feat: add the node modules 2022-12-03 12:44:49 +00:00
lib feat: add the node modules 2022-12-03 12:44:49 +00:00
package.json feat: add the node modules 2022-12-03 12:44:49 +00:00
README.md feat: add the node modules 2022-12-03 12:44:49 +00:00

Async Iterator Symbol

Async iterator symbol which specifies the default async iterator for an object.

Usage

var AsyncIteratorSymbol = require( '@stdlib/symbol/async-iterator' );

AsyncIteratorSymbol

Async iterator symbol which specifies the default async iterator for an object.

var s = typeof AsyncIteratorSymbol;
// e.g., returns 'symbol'

Notes

  • The symbol is only supported in environments which support symbols and async iterators. In non-supporting environments, the value is null.

Examples

var AsyncIteratorSymbol = require( '@stdlib/symbol/async-iterator' );

if ( AsyncIteratorSymbol === null ) {
    console.log( 'Environment does not support Symbol.asyncIterator.' );
} else {
    console.log( 'Environment does support Symbol.asyncIterator.' );
}