New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nejquery

Package Overview
Dependencies
Maintainers
1
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nejquery - npm Package Compare versions

Comparing version
5.5.7
to
5.5.8
+5
-0
index.js

@@ -88,2 +88,7 @@ // Utils

export const mapChain =
(...fns) =>
xs =>
fns.reduce((acc, fn) => acc.map(fn), xs)
export const forEach = fn => xs => xs.forEach(fn ?? identity)

@@ -90,0 +95,0 @@

@@ -527,2 +527,29 @@ ## Table of Contents

### `mapChain`
**Description:**
Applies multiple transformation functions in sequence using `.map()` for each.
Equivalent to chaining multiple `.map(...)` calls, but written in a compact, composable form.
```js
const mapChain = (...fns) => xs =>
fns.reduce((acc, fn) => acc.map(fn), xs)
```
```js
const double = x => x * 2
const square = x => x * x
const negate = x => -x
const transform = mapChain(double, square, negate)
transform([1, 2, 3]) // → [-4, -16, -36]
// Explanation:
// [1, 2, 3]
// → [2, 4, 6] // after double
// → [4, 16, 36] // after square
// → [-4, -16, -36] // after negate
```
### `partition`

@@ -529,0 +556,0 @@

+1
-1
{
"name": "nejquery",
"version": "5.5.7",
"version": "5.5.8",
"author": "bmehder",

@@ -5,0 +5,0 @@ "private": false,