Formats a number into a short representation with optional decimal digits and full formatting.
@example
// Format a number with default options const shortNumber =nFormatter(1000); console.log(shortNumber);// Output: "1K" // Format a number with 2 decimal digits and full formatting const fullNumber =nFormatter(12345678,{ digits:2, full:true}); console.log(fullNumber);// Output: "12,345,678.00"
Formats a number into a short representation with optional decimal digits and full formatting.