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