
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
Map over async iterables
The map() function creates a new async iterable with the results of calling a provided function on every element in the async iterable.
This module is part of Async iterable fun, a complete toolset of modules to work with async iterables.
description of the example
import aiMap from 'ai-map';
for (const item of {aiMap}()) {
yield item;
};
This will output
Creates a new async iterable with the results of calling a provided function on every element in the async iterable.
Parameters
data AsyncIterable The async iterable to map over
transform Function Function to apply to each element in the async iterable, taking 3 arguments:
. ```
currentValue - The current element being processed in the async iterable.
__currentIndex__ - The index of the current element being processed in the async
iterable. Starts at index 0
__data__ - The async iterable map was called upon.
```
Returns AyncIterable An iterable that iterates over the transform calls results.
Higher order function that partially apply transform to the
map function.
Parameters
transform Function The transform argument to partially apply to mapReturns Function A map unary function that take a data argument
and return a new async iterable.
With npm installed, run
npm install --save ai-map
MIT Licensed © 2017 Andrea Parodi
FAQs
Map over async iterables
We found that ai-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.