JSFiddle - React, Tailwind, and code Playground
JavaScript
Number.prototype.abs = function () {
return this >= 0 ? this : this * -1;
};
alert(typeof 50);
alert(typeof (50).abs());
/*
alert(
(50).abs() === 50
);
alert(
(50).abs() == 50
);
alert(
(-50).abs() === 50
);*/