JavaScript ke alamat email topeng
var maskid = myemailId.replace(/^(.)(.*)(.@.*)$/,
(_, a, b, c) => a + b.replace(/./g, '*') + c
);
Emmanuel Mahuni
var maskid = myemailId.replace(/^(.)(.*)(.@.*)$/,
(_, a, b, c) => a + b.replace(/./g, '*') + c
);