lightfold
Version:
lightweight scaffolding and archiving utility CLI.
15 lines (11 loc) • 304 B
text/typescript
export function getSymbolIterator(): symbol {
if (typeof Symbol !== 'function' || !Symbol.iterator) {
return '@@iterator' as any;
}
return Symbol.iterator;
}
export const iterator = getSymbolIterator();
/**
* @deprecated use {@link iterator} instead
*/
export const $$iterator = iterator;