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

easily-js

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easily-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

deepEqual.js

11

package.json
{
"name": "easily-js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Easily-js is providing high performance function",

@@ -15,3 +15,10 @@ "main": "index.js",

"keywords": [
"js"
"js",
"util",
"functional",
"performance",
"high performance",
"server",
"client",
"browser"
],

@@ -18,0 +25,0 @@ "bugs": {

5

README.md
[![Build Status](https://travis-ci.org/KSH-code/easily-js.svg?branch=master)](https://travis-ci.org/KSH-code/easily-js)
![Npm Version](https://img.shields.io/npm/v/easily-js.svg?style=flat-square)
```
npm install --save easily-js
```
# Example
* [isEqual](https://github.com/KSH-code/easily-js/blob/master/test/isEqual.test.js)
* [deepEqual](https://github.com/KSH-code/easily-js/blob/master/test/deepEqual.test.js)
* [set](https://github.com/KSH-code/easily-js/blob/master/test/set.test.js)

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

const isEqual = require('./isEqual')
const deepEqual = require('./deepEqual')

@@ -26,3 +26,3 @@ /**

for (let key in tempObjectArr) {
if (isEqual(tempObjectArr[key], value)) {
if (deepEqual(tempObjectArr[key], value)) {
isFind = true

@@ -29,0 +29,0 @@ break

/* global describe, it */
'use strict'
const { set, isEqual } = require('../index')
const { set, deepEqual } = require('../index')
const { checkEqual } = require('easily-expect')

@@ -8,10 +8,10 @@

it('[1, 1, 1, 1, 1]', () => {
checkEqual(true, isEqual([1], set([1, 1, 1, 1, 1])))
checkEqual(true, deepEqual([1], set([1, 1, 1, 1, 1])))
})
it('[1, 2, 3, 1, 2]', () => {
checkEqual(true, isEqual([1, 2, 3], set([1, 2, 3, 1, 2])))
checkEqual(true, deepEqual([1, 2, 3], set([1, 2, 3, 1, 2])))
})
it('{}, { a: 1 }, {}, { a: 1 }', () => {
checkEqual(true, isEqual([{}, { a: 1 }], set([{}, { a: 1 }, {}, { a: 1 }])))
checkEqual(true, deepEqual([{}, { a: 1 }], set([{}, { a: 1 }, {}, { a: 1 }])))
})
})
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