MSNCodeSNIPPETS← msncode.dev
snippets/javascript

Format Number as Currency

Format a number as a localized currency string

javascriptjavascriptformatcurrency
JAVASCRIPT
new Intl.NumberFormat('id-ID', { style: 'currency', currency: 'IDR' }).format(50000)

More javascript snippets

Capitalize First Letter

Capitalize the first character of a string

Copy to Clipboard

Copy text to the user's clipboard using the Clipboard API

Debounce a Function

Delay function execution until user stops typing

Deep Clone an Object

Deep copy an object (works for JSON-serializable data)