exec1 returns null
if no match was found or an object with
information about the match otherwise:
let match = /\d+/.exec("one two 100");
console.log(match);
console.log(match.index);
Nov 04, 20201 min read
exec1 returns null
if no match was found or an object with
information about the match otherwise:
let match = /\d+/.exec("one two 100");
console.log(match);
console.log(match.index);