
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@jitesoft/async-array
Advanced tools
Array wrapper with async methods.
There are multiple ways to use this package:
Import the static methods which are possible to use on any array type object:
import {map} from '@jitesoft/async-array';
import {doFunStuffAsync} from './async-functions';
(async () => {
let result = await map(['a', 'b', 'c'], async (value, index, list) => {
let somethingSomething = await doFunStuffAsync(value);
});
})();
The following methods are available to import directly for usage:
every
find
findIndex
forEach
forEachSeries
map
some
The AsyncArray
class is a class which extends the Array class. All the standard methods that the array class have is
available on the AsyncArray
. The following methods are overriden to introduce async functionality:
.every
.find
.findIndex
.forEach
.series
.map
.some
It's also possible to import the simple async
and sync
methods directly from the package to convert a normal array into
async or async array into normal.
import {sync, async} from '@jitesoft/async-array';
let array = []; // Array
array = async(array); // AsyncArray
array = sync(array); // Array
FAQs
Array wrapper with async methods.
We found that @jitesoft/async-array demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.