Tcsm
2023-08-06 b5d842b900757a2fb48d673cb33bb551e8da7b89
1
2
3
4
5
6
7
8
9
export function getSymbolIterator(): symbol {
  if (typeof Symbol !== 'function' || !Symbol.iterator) {
    return '@@iterator' as any;
  }
 
  return Symbol.iterator;
}
 
export const iterator = getSymbolIterator();