2.6 KiB
2.6 KiB
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
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.' );
}