OpenUserJS.org icon indicating copy to clipboard operation
OpenUserJS.org copied to clipboard

String.prototype.substr() deprecation

Open Martii opened this issue 3 years ago • 0 comments

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):

  • slice should 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

Martii avatar May 24 '22 19:05 Martii