Xah Web Dev Blog

WEB MONKEY CANCER

highlights

xtodo
xtodo

massive updates

replaced all Object.prototype.hasOwnProperty by Object.hasOwn

lots major updates

mega updates.

xtodo

JavaScript abomination, or rather, the abomination of references in programing languages

in JavaScript, regex is always new, never equal.

// JavaScript abomination, or rather, the abomination of references
// regex object are never equal

console.log(RegExp("x") === RegExp("x"));
// false

console.log(RegExp("x").source === RegExp("x").source);
// true

in which programing language regex are never equal, like in JavaScript (/πŸ¦‹/ === /\u{1F98B}/)

in which programing language regex are never equal, like in JavaScript (/πŸ¦‹/ == /x/)

xtodo