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

chai-quantifiers

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-quantifiers - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

10

package.json
{
"name": "chai-quantifiers",
"version": "1.0.2",
"version": "1.0.3",
"description": "Array quantifier assertions for chai assertion library",

@@ -35,6 +35,6 @@ "main": "src/chai-quantifiers.js",

"chai": "^4.1.2",
"coveralls": "^3.0.1",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.12.0",
"coveralls": "^3.0.2",
"eslint": "^5.3.0",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-promise": "^3.8.0",

@@ -41,0 +41,0 @@ "eslint-plugin-should-promised": "^2.0.0",

@@ -1,7 +0,8 @@

const evaluate = (array, predicate) =>
array.reduce(
(acc, item, i) =>
(predicate(item) ? { t: [...acc.t, i], f: acc.f } : { t: acc.t, f: [...acc.f, i] }),
{ t: [], f: [] }
);
const evaluate = (array, predicate) => array.reduce(
(acc, item, i) => (
predicate(item)
? { t: [...acc.t, i], f: acc.f }
: { t: acc.t, f: [...acc.f, i] }
), { t: [], f: [] }
);

@@ -8,0 +9,0 @@ const plugin = (chai) => {

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