Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
304 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | export function getSymbolIterator(): symbol {
|
---|
| 2 | if (typeof Symbol !== 'function' || !Symbol.iterator) {
|
---|
| 3 | return '@@iterator' as any;
|
---|
| 4 | }
|
---|
| 5 |
|
---|
| 6 | return Symbol.iterator;
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | export const iterator = getSymbolIterator();
|
---|
| 10 |
|
---|
| 11 | /**
|
---|
| 12 | * @deprecated use {@link iterator} instead
|
---|
| 13 | */
|
---|
| 14 | export const $$iterator = iterator;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.