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.

10 lines (9 loc) 422 B
/** * Generator that yields numbers oscillating between min and max in a sine-wave–like motion. * @author @dailker * @param {number} min - The minimum value. * @param {number} max - The maximum value. * @param {number} [speed=0.1] - The speed of oscillation. * @yields {number} The next oscillated value. */ export declare function oscillate(min: number, max: number, speed?: number): Generator<number>;