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.

9 lines (8 loc) 260 B
/** * Applies light randomness to numeric array elements. * @author @dailker * @param {number[]} array * @param {number} [strength=0.1] * @returns {number[]} */ export declare function mutateByNoise(array: number[], strength?: number): number[];