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