1.0.5 • Published 2 years ago

lbbing_data_compare v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

轻量级严格数据对比函数

基于js编写轻量级严格数据对比函数, 此函数可对复杂数组、对象进行对比; 两组数据对比时数据字段一样但顺序不同结果也是验证不通过。

使用方式

Installation

npm install --save lbbing_data_compare

Usage

import {dataContrast} from 'lbbing_data_compare';

let a = ref([{a:123, b: 234}])
let b = ref([{a:123, b: 234}, [1,2,3,4,5]])

console.log(dataContrast(a.value, b.value));

// 数据相同返回 true
// 数据不同返回 false
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago