- taking the definition of a newer feature and producing a piece of code that's equivalent to the behavior, but is able to run in older JS environments.
if (!Number.isNaN) {
Number.isNaN = function isNaN(x) { return x !== x; };
}
if (!Number.isNaN) {
Number.isNaN = function isNaN(x) { return x !== x; };
}