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