toolproject

1.0.5 • Public • Published

开发文档

安装命令 npm i toolproject

(1) arraySome

引用此函数是处理两个数组是否完全一致,传参两个变量(arr1,aarr2) 返回true则是完全一致, 反之不同。
==举例==
let a=[1,2,3,4];
let b=[1,2,3,4];
let c=[1,2,3];
console.log(arraySome(a,b))  输出结果true
console.log(arraySome(a,c))  输出结果false

(2) fomatterValueCustomMessage

引用此函数是处理将需要自定义处理的数据格式。
==举例==
let a='';
let b=null;
let c=undefined;
console.log(fomatterValueCustomMessage(a,'-',['',null]))  输出结果 -
console.log(fomatterValueCustomMessage(a,'-',[undefined,null]))  输出结果''

Package Sidebar

Install

npm i toolproject

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

3.35 kB

Total Files

4

Last publish

Collaborators

  • wangxinfang