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

equals

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

equals - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

14

index.js

@@ -1,2 +0,2 @@

var type = require('@jkroso/type')
import type from '@jkroso/type'

@@ -7,4 +7,4 @@ // (any, any, [array]) -> boolean

if (a === b) return true
var fnA = types[type(a)]
var fnB = types[type(b)]
const fnA = types[type(a)]
const fnB = types[type(b)]
return fnA && fnA === fnB

@@ -15,3 +15,3 @@ ? fnA(a, b, memos)

var types = {}
const types = {}

@@ -115,4 +115,4 @@ // (Number) -> boolean

// (object) -> array
function getEnumerableProperties (object) {
var result = []
const getEnumerableProperties = (object) => {
const result = []
for (var k in object) if (k !== 'constructor') {

@@ -124,2 +124,2 @@ result.push(k)

module.exports = equal
export default equal
{
"name": "equals",
"version": "1.0.2",
"version": "2.0.0",
"description": "Check if two values are deeply equivalent",
"dependencies": {
"@jkroso/type": "1"
"@jkroso/type": "2"
},
"devDependencies": {
"serve": "jkroso/serve",
"future-node": "*",
"hydro-html": "*",

@@ -17,2 +18,3 @@ "hydro-chai": "*",

},
"transpile": [["{index,test/*}.js", "!sourcegraph/babel->js", {"stage": 2}]],
"repository": "git://github.com/jkroso/equals.git",

@@ -19,0 +21,0 @@ "keywords": ["equality", "equal", "equivalent", "equivalence", "="],

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