New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deepy

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepy

A fast algorithm for comparing equality of values with strict equality for value types.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

Deepy

Build Status

A fast algorithm for value comparison and equality of value types.

It's build for performance, and supports ES6 primitives among other things.

Loosely based on algorithms from NodeJS, Jasmine, Lodash and others.

Install

$ npm install --save deepy

Usage

Returns either true or false depends if the values are the same according to the algorithm or not.


let deepy = require('deepy')

deepy({a: 0}, {a: false}) // false
deepy(['a'], {0: 'a'}) // false
deepy({a: 1}, {a: 1}) // true
deepy('/a/igmm', '/a/igm') // false
deepy(
    [
        {foo: {z: 100, y: 200, x: 300}},
        'bar',
        11,
        {baz: {d: 4, a: 1, b: 2, c: 3}}
    ],
    [
        {foo: {z: 100, y: 200, x: 300}},
        'bar',
        11,
        {baz: {d: 4, a: 1, b: 2, c: 3}}
    ]
) // true

Keywords

FAQs

Package last updated on 18 Aug 2016

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

  • 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