SyntaxFix
Write A Post
Hire A Developer
Questions
lodash has a round method:
lodash
round
_.round(4.006); // => 4 _.round(4.006, 2); // => 4.01 _.round(4060, -2); // => 4100
Docs.
Source.