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) 231 B
/** * Rotates the array (circular shift). * @author @dailker * @template T * @param {T[]} array * @param {number} positions * @returns {T[]} */ export declare function rotate<T>(array: T[], positions: number): T[];