OpenUserJS.org
OpenUserJS.org copied to clipboard
String.prototype.substr() deprecation
What’s missing?
https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/substr migration.
Why?
Because JavaScript (ECMAScript) API has issues with keeping constant methods in place and wants to make it look like they are unique outside of C/CPP. :smile_cat:
Alternatives you tried
n/a
NOTE(s):
sliceshould work with most of ours with a little finagling.
REF(s):
- https://tc39.es/ecma262/multipage/additional-ecmascript-features-for-web-browsers.html#sec-string.prototype.substr