linwenling
2023-04-04 1dc3c8bbc6ad0afdb8dfdfa4c0b9334d3095cf10
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();