🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@common-utilities/compose

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-utilities/compose - npm Package Compare versions

Comparing version

to
0.0.5

1

dist/index.d.ts

@@ -7,2 +7,3 @@ /**

* until it spits out the final value
* ----
* @param {fns} an array of functions

@@ -9,0 +10,0 @@ * @returns the next/final value

@@ -9,2 +9,3 @@ "use strict";

* until it spits out the final value
* ----
* @param {fns} an array of functions

@@ -11,0 +12,0 @@ * @returns the next/final value

4

package.json
{
"name": "@common-utilities/compose",
"version": "0.0.4",
"version": "0.0.5",
"description": "A basic implementation of the common utility function, Compose 🚂",

@@ -36,3 +36,3 @@ "main": "dist/index.js",

},
"gitHead": "6a7e5b4c5a9cee469b6da45ab024189c2ba60447"
"gitHead": "97aa7238b52ada20611cac72a7a28e8de0ebd30c"
}
# @common-utilities/compose 🧰 🚂
A common function composed of function arguments which returns their value to the next function until returning a final value.
**Compose** is a common function composed of function arguments which returns their value to the next function until returning a final value.

@@ -24,5 +24,5 @@ ## Install

```javascript
const add1 = (val = val + 1)
const subtract2 = (val = val - 2)
const multiplyBy3 = (val = val * 3)
const add1 = (val) => val + 1
const subtract2 = (val) => val - 2
const multiplyBy3 = (val) => val * 3
compose(add1, subtract2, multiplyBy3)

@@ -29,0 +29,0 @@ ```

Sorry, the diff of this file is not supported yet