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