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.

12 lines (11 loc) 327 B
/** * Treats array like memory or tape for state-based operations. * @author @dailker * @param {any[]} array * @param {{op: string, [key: string]: any}[]} instructions * @returns {any[]} */ export declare function arrayMachine(array: any[], instructions: { op: string; [key: string]: any; }[]): any[];