UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

8 lines (7 loc) 296 B
/** * Calculates the Median Absolute Deviation (MAD) of an array of numbers. * @author @dailker * @param {number[]} numbers - The input array of numbers. * @returns {number} The median absolute deviation. */ export declare function medianAbsoluteDeviation(numbers: number[]): number;