- color.ts 判断是否是十六进制颜色值
- tools.ts 删除对象中值为: null, undefined, NaN, ''的属性
yarn dev
yarn test
yarn build
yarn publish
yarn add mzm-sdk
import {deleteEmpty,isColor} from 'mzm-sdk'
let obj = {
a: undefined,
b: 1,
c: null,
d: "",
e: NaN,
};
console.log(Tools.deleteEmpty(obj));//{b:1}