@thi.ng/transducers
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.5.1"></a> | ||
## [1.5.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.5.0...@thi.ng/transducers@1.5.1) (2018-03-02) | ||
### Bug Fixes | ||
* **transducers:** flattenWith() ([3d8aa32](https://github.com/thi-ng/umbrella/commit/3d8aa32)) | ||
<a name="1.5.0"></a> | ||
@@ -8,0 +19,0 @@ # [1.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.4.0...@thi.ng/transducers@1.5.0) (2018-02-26) |
{ | ||
"name": "@thi.ng/transducers", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Lightweight transducer implementations for ES6 / TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -9,5 +9,5 @@ "use strict"; | ||
const flatten = (acc, x) => { | ||
x = fn(x); | ||
if (x) { | ||
for (let y of x) { | ||
const xx = fn(x); | ||
if (xx) { | ||
for (let y of xx) { | ||
acc = flatten(acc, y); | ||
@@ -22,5 +22,5 @@ if (reduced_1.isReduced(acc)) { | ||
}; | ||
return comp_1.compR(rfn, fn); | ||
return comp_1.compR(rfn, flatten); | ||
}; | ||
} | ||
exports.flattenWith = flattenWith; |
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
157603