Socket
Book a DemoInstallSign in
Socket

@raywhite/async-hofs

Package Overview
Dependencies
Maintainers
8
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@raywhite/async-hofs - npm Package Compare versions

Comparing version

to
0.8.0

6

package.json
{
"name": "@raywhite/async-hofs",
"version": "0.7.0",
"version": "0.8.0",
"description": "Async / Promise related higher order functions and utils",

@@ -12,4 +12,4 @@ "main": "./src/index.js",

"test:lint": "eslint .",
"test:node": "ava --verbose",
"test:node_match": "ava --verbose --match"
"test:node": "ava -v -s -c 1",
"test:node_match": "ava -v -s -c 1 --match"
},

@@ -16,0 +16,0 @@ "author": "axdg <axdg@dfant.asia>",

@@ -116,7 +116,7 @@ # async-hofs

### createLinear(*m*, *b*) => *line*
### createLinear({ *m*, *b* }) => *line*
Intended for use with `createRetierFn`, to create a function to be used as a linear `curve` generator, or simply a `line`.
- { **m**, **b**} - the constants `m` and `b` or the gradient and `y` intercept in the, respectively, in the equation `y = m * x + b`.
- { **m**, **b** } - the constants `m` and `b` or the gradient and `y` intercept in the, respectively, in the equation `y = m * x + b`.
- **line** - a function that takes an `x` value and returns a `y` value.

@@ -123,0 +123,0 @@

@@ -31,4 +31,5 @@ const { sleep, isPromise } = require('./utilities')

return new Promise(function (resolve, reject) {
const args = [...fns] // NOTE: A clone is required each time.
const recurse = function (res) {
const fn = method.call(fns)
const fn = method.call(args)

@@ -35,0 +36,0 @@ try {