Socket
Socket
Sign inDemoInstall

iterable-operator

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterable-operator - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

lib/es2015/flat-map-async.d.ts

2

lib/es2015/index.d.ts

@@ -27,2 +27,4 @@ export * from './is-iterable';

export * from './intersection';
export * from './flat-map-async';
export * from './flat-map';
export * from './map-async';

@@ -29,0 +31,0 @@ export * from './map';

@@ -43,2 +43,4 @@ "use strict";

__exportStar(require("./intersection"), exports);
__exportStar(require("./flat-map-async"), exports);
__exportStar(require("./flat-map"), exports);
__exportStar(require("./map-async"), exports);

@@ -45,0 +47,0 @@ __exportStar(require("./map"), exports);

@@ -27,2 +27,4 @@ export * from './is-iterable';

export * from './intersection';
export * from './flat-map-async';
export * from './flat-map';
export * from './map-async';

@@ -29,0 +31,0 @@ export * from './map';

@@ -43,2 +43,4 @@ "use strict";

__exportStar(require("./intersection"), exports);
__exportStar(require("./flat-map-async"), exports);
__exportStar(require("./flat-map"), exports);
__exportStar(require("./map-async"), exports);

@@ -45,0 +47,0 @@ __exportStar(require("./map"), exports);

2

package.json
{
"name": "iterable-operator",
"version": "2.4.0",
"version": "2.5.0",
"description": "Utilities for JavaScript Iterable and AsyncIterable",

@@ -5,0 +5,0 @@ "keywords": [

@@ -270,2 +270,18 @@ # iterable-operator

### flatMap, flatMapAsync
```ts
function flatMap<T, U>(
iterable: Iterable<T>
, fn: (element: T, index: number) => Iterable<U>
): IterableIterator<U>
function flatMapAsync<T, U>(
iterable: Iterable<T> | AsyncIterable<T>
, fn: (element: T, index: number) => Iterable<U> | AsyncIterable<U>
): AsyncIterableIterator<U>
```
```ts
map([1, 2, 3], x => [x, x * 2]) // [1, 2, 2, 4, 3, 6]
```
### repeat, repeatAsync

@@ -272,0 +288,0 @@ ```ts

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc