Comparing version 1.0.0 to 1.0.1
{ | ||
"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": { |
[![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 }]))) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5822
8