TypeScript/tests/cases/compiler/stringMatchAll.ts
2019-04-25 14:11:50 -07:00

6 lines
132 B
TypeScript

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