iterable-operator
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,3 +1,4 @@ | ||
export declare type NestedIterable<T> = Iterable<NestedIterable<T> | T>; | ||
export declare function flattenDeep<T, U = T>(iterable: NestedIterable<T>): Iterable<U>; | ||
export declare function flattenDeep<T, U = T>(iterable: NestedIterable<T>, depth: number): Iterable<U>; | ||
export declare function flattenDeep<T, U = T>(iterable: NestedIterable<T>, depth: number, exclude: (value: Iterable<unknown>) => boolean): Iterable<U>; |
@@ -0,2 +1,3 @@ | ||
import { NestedIterable } from './flatten-deep'; | ||
export declare function flatten<T, U = T>(iterable: NestedIterable<T>): Iterable<U>; | ||
export declare function flatten<T, U = T>(iterable: NestedIterable<T>, exclude: (value: Iterable<unknown>) => boolean): Iterable<U>; |
@@ -7,3 +7,3 @@ export * from './chunk-by'; | ||
export * from './flatten'; | ||
export * from './flatten-deep'; | ||
export { flattenDeep } from './flatten-deep'; | ||
export * from './head'; | ||
@@ -10,0 +10,0 @@ export * from './map'; |
@@ -12,3 +12,4 @@ "use strict"; | ||
__export(require("./flatten")); | ||
__export(require("./flatten-deep")); | ||
var flatten_deep_1 = require("./flatten-deep"); | ||
exports.flattenDeep = flatten_deep_1.flattenDeep; | ||
__export(require("./head")); | ||
@@ -15,0 +16,0 @@ __export(require("./map")); |
{ | ||
"name": "iterable-operator", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Minimalist utility for JavaScript Iterable.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46992
697