TypeScript/tests/cases/compiler/regexMatchAll-esnext.ts
2019-08-15 10:06:46 -07:00

6 lines
140 B
TypeScript

// @target: esnext
const matches = /\w/g[Symbol.matchAll]("matchAll");
const array = [...matches];
const { index, input } = array[0];