TypeScript/tests/cases/compiler/regexMatchAll-esnext.ts

6 lines
140 B
TypeScript
Raw Normal View History

2019-08-15 19:06:46 +02:00
// @target: esnext
const matches = /\w/g[Symbol.matchAll]("matchAll");
const array = [...matches];
const { index, input } = array[0];