You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

equal-strategies

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

equal-strategies

Equality evaluation strategies

0.2.2
latest
Source
npmnpm
Version published
Weekly downloads
4
Maintainers
0
Weekly downloads
 
Created
Source

equal-strategies

Version Types License

Equality evaluation strategies.

Install

npm install equal-strategies

Usage

Strategies

There are four comparison strategies:

strict(value: any, query: any): boolean

Simple strict equality comparison.

partial(value: any, query: any): boolean

Shallow equality comparison that ignores any missing properties in value and strict compares arrays.

shallow(value: any, query: any): boolean

Shallow equality comparison.

deep(value: any, query: any): boolean

Deep equality comparison.

Utils

compare(kind: string, value: any, query: any): boolean

A conveniency function, with kind being either "strict", "partial", "shallow", or "deep".

Keywords

equal

FAQs

Package last updated on 29 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.