Mazey utility playground
Interactive utility examples
Calculate date and time interval
Calculate the interval from the start date and time to the end date and time using getDateDifference.
Calculate an investment CAGR
Annualize a complete-period return using calculateCAGR and a fixed 365-day year.
Format a duration
Convert milliseconds into a concise readable duration using formatDurationFromMs.
Continue exploring Mazey
These examples cover universal utilities that are safe to call in a browser. Other Mazey APIs interact with the DOM, storage, cookies, resource loading, browser detection, and performance APIs; review their runtime requirements before use.