4 ms·
For context, choosing names for new javascript features always takes this web-compatibility into consideration. Most famously in the naming of String/Array.prot
by gcommer 9y ago
For context, choosing names for new javascript features always takes this web-compatibility into consideration. Most famously in the naming of String/Array.prototype.includes, which was originally going to be .contains before it was realized that that broke MooTools.
See:
end of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
https://github.com/tc39/Array.prototype.includes/#why-includes-instead-of-has https://github.com/tc39/Array.prototype.includes/#why-includ...