Last active
January 13, 2023 12:19
-
-
Save jagsbyteinception/916558ace963cc3818fad8f06b5f837e to your computer and use it in GitHub Desktop.
utility functions in javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Math.round(sclCriterias.rate * 1e2) / 1e2; //round to 2 decimal places | |
const data = Object.fromEntries(new FormData(event.currentTarget)) //create JSON object from form entries | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment