rolling-scopes-school / core-js-strings

Tasks for learning methods of String class
MIT License
16 stars 1.77k forks source link

Mb in this case 'replace' is more optimal that solution via 'indexOf'? #5

Open Nck1969 opened 10 months ago

Nck1969 commented 10 months ago

https://github.com/rolling-scopes-school/core-js-strings/blob/9749770a8cdb8ddf65b79ca8f4a67128ed6d5d82/test/strings-tests.js#L414C26-L414C26

natein commented 10 months ago

image

Replace и так все знают.