- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
9 lines
229 B
JavaScript
9 lines
229 B
JavaScript
export function getRoundingMethod(method) {
|
|
return (number) => {
|
|
const round = method ? Math[method] : Math.trunc;
|
|
const result = round(number);
|
|
// Prevent negative zero
|
|
return result === 0 ? 0 : result;
|
|
};
|
|
}
|