TypeScript/tests/cases/compiler/stringMatchAll.ts

6 lines
132 B
TypeScript
Raw Normal View History

2019-04-25 23:11:50 +02:00
// @target: es2020
const matches = "matchAll".matchAll(/\w/g);
const array = [...matches];
const { index, input } = array[0];