79364843

Date: 2025-01-17 13:08:14
Score: 1
Natty:
Report link

I would use replaceAll for this meanwhile

var string = 'MyString\u0000\u0000\u0000';
console.log(string.length); // 11
console.log(string.replaceAll('\0', '').length); // 8
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ahe_borriglione