I can't understand why I get the error:
evalmachine.<anonymous>:9
value = String(value).match(/0/g).length;
^
TypeError: Cannot read property 'length' of null
at endZeros (/opt/project/test.ts:5:39)
at /opt/project/test.ts:15:14
I checked my code in vs code and it worked there
Created at: 2021/04/24 22:28; Updated at: 2021/04/27 09:21
The question is resolved.