# sync-array **Repository Path**: mirrors_taoqf/sync-array ## Basic Information - **Project Name**: sync-array - **Description**: Sync Array operations. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Arry operation Sync funcitons for Array. Void Excepton `Maximum call stack size exceeded` ## Installation ```sh yarn add sync-array ``` or ```sh npm i --save sync-array ``` ## Examples ```ts import array from 'sync-array'; // import forEach from 'sync-array/foreach'; // const { forEach, map, every, filter, some, reduce, reduceRight } = require('sync-array').default; function sleep(timeout: number){ return new Promise((resolve)=>{ setTimeout(resolve, timeout); }); } const arr = [1000, 500, 100]; arr.forEach(async (it)=>{ await sleep(it); console.log(it); }); // 100 // 500 // 1000 array.forEach(arr, async (it)=>{ await sleep(it); console.log(it); }); // 1000 // 500 // 100 ```