UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

14 lines (13 loc) 526 B
declare global { interface Math { /** Returns the sum value of the given values. */ sum(...values: number[]): number; /** Returns the average value of the given values. */ avg(...values: number[]): number; /** Returns a the product value multiplied by the given values. */ product(...values: number[]): number; /** Returns the rounded value of the given number to a specified precision. */ round(value: number, precision: number): number; } } export {};