prototype dot functions. How?
How would I go about creating dot function that can be chained at the end of a number in Deno?
Example:
Example:
(2).toUSD() // returns $2.00(2).toUSD() // returns $2.00function toUSD(amount) {
// RETURN Something..
return new Intl.NumberFormat("en-US", {
style: "currency",
currency: "USD"
}).format(amount);
},