New String object method
RJM Programming - January, 2025
Thanks to
http://xahlee.info/
New or Overriding Object Javascript Code
Code Using That New Code Perhaps
// To override always, change first no to yes in code line below if ('nooverride' == 'yesoverride' || !String.fromCodePoint) { // thanks to http://xahlee.info/ // ES6 Unicode Shims 0.1 , © 2012 Steven Levithan , MIT License String.fromCodePoint = function fromCodePoint () { var chars = [], point, offset, units, i; for (i = 0; i < arguments.length; ++i) { point = arguments[i]; offset = point - 0x10000; units = point > 0xFFFF ? [0xD800 + (offset >> 10), 0xDC00 + (offset & 0x3FF)] : [point]; chars.push(String.fromCharCode.apply(null, units)); } return chars.join(""); } }
alert(String.fromCodePoint(10004));