Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

map-filter-reduce

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

map-filter-reduce - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

2

package.json
{
"name": "map-filter-reduce",
"description": "",
"version": "3.2.1",
"version": "3.2.2",
"homepage": "https://github.com/dominictarr/map-filter-reduce",

@@ -6,0 +6,0 @@ "repository": {

@@ -70,2 +70,14 @@ # map-filter-reduce

#### $eq, $ne, $not, $truthy, $is, $in, $type
basic operations:
* `{$eq: value}` test input is equal to value
* `{$ne: value}` test input is not equal to value
* `{$truthy: true}` test if input converts to true.
* `{$not: true}` test if input converts to false.
* `{$type: true}` returns the `typeof` the input. (useful in $map, but not $filter)
* `{$is: 'object'|'string'|'number'|'boolean'|'undefined'}` test if input is particular type, use instead of `$type` in filters.
* `{$in: [...]}` check if input is one of a set. input must be a primitive, not an object.
#### objects

@@ -160,3 +172,3 @@

#### count
#### $count

@@ -168,3 +180,3 @@ count how many items are in the input

#### sum
#### $sum

@@ -179,3 +191,3 @@ sum elements in the input. input elements must be numbers.

#### min, max
#### $min, $max

@@ -188,3 +200,3 @@ get the minimum or maximum for a value.

#### collect
#### $collect

@@ -235,5 +247,5 @@ get all values an put them into an array.

### sort
### $sort
you can also sort the output of a some paths:
you can also sort the output of a some paths:

@@ -251,1 +263,2 @@ ``` js

@@ -47,1 +47,15 @@

tape('!isRange', function (t) {
function r(not_range) {
t.notOk(u.isRange(not_range), JSON.stringify(not_range)+ ' is not a range')
}
r({$ne: 'foo'})
t.end()
})
tape('!isExact', function (t) {
function r(not_exact) {
t.notOk(u.isExact(not_exact), JSON.stringify(not_exact)+ ' is not exact')
}
r({$ne: 'foo'})
t.end()
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc