@thi.ng/compose
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.1.1...@thi.ng/compose@1.1.2) (2019-03-01) | ||
**Note:** Version bump only for package @thi.ng/compose | ||
## [1.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.1.0...@thi.ng/compose@1.1.1) (2019-02-26) | ||
@@ -8,0 +16,0 @@ |
@@ -120,9 +120,9 @@ 'use strict'; | ||
const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ? | ||
expr(acc) : | ||
expr[0](acc, ...expr.slice(1)), init); | ||
const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" | ||
? expr(acc) | ||
: expr[0](acc, ...expr.slice(1)), init); | ||
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ? | ||
expr(acc) : | ||
expr[0](...expr.slice(1), acc), init); | ||
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" | ||
? expr(acc) | ||
: expr[0](...expr.slice(1), acc), init); | ||
@@ -129,0 +129,0 @@ exports.comp = comp; |
@@ -120,9 +120,9 @@ (function (global, factory) { | ||
const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ? | ||
expr(acc) : | ||
expr[0](acc, ...expr.slice(1)), init); | ||
const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" | ||
? expr(acc) | ||
: expr[0](acc, ...expr.slice(1)), init); | ||
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ? | ||
expr(acc) : | ||
expr[0](...expr.slice(1), acc), init); | ||
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" | ||
? expr(acc) | ||
: expr[0](...expr.slice(1), acc), init); | ||
@@ -129,0 +129,0 @@ exports.comp = comp; |
{ | ||
"name": "@thi.ng/compose", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Arity-optimized functional composition helpers", | ||
@@ -35,4 +35,4 @@ "module": "./index.js", | ||
"dependencies": { | ||
"@thi.ng/api": "^5.0.2", | ||
"@thi.ng/errors": "^1.0.2" | ||
"@thi.ng/api": "^5.0.3", | ||
"@thi.ng/errors": "^1.0.3" | ||
}, | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
"sideEffects": false, | ||
"gitHead": "647e13737436e44d28e151c0be8594835cf25ed0" | ||
"gitHead": "e43f57c7554fd78380bba58d37ae62ca01221eeb" | ||
} |
@@ -27,4 +27,4 @@ /** | ||
*/ | ||
export const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ? | ||
expr(acc) : | ||
expr[0](acc, ...expr.slice(1)), init); | ||
export const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" | ||
? expr(acc) | ||
: expr[0](acc, ...expr.slice(1)), init); |
@@ -27,4 +27,4 @@ /** | ||
*/ | ||
export const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ? | ||
expr(acc) : | ||
expr[0](...expr.slice(1), acc), init); | ||
export const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" | ||
? expr(acc) | ||
: expr[0](...expr.slice(1), acc), init); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52924
Updated@thi.ng/api@^5.0.3
Updated@thi.ng/errors@^1.0.3