@jeebey/tt-funclib
v0.0.1
Published
常用函数库funslib
Readme
介绍
常用函数库funslib
安装
npm i @jeebey/tt-funslib接口文档
isEmpty(obj)
timeout(ms)
apply(obj1,obj2)
clone(obj)
throttle(fn,ms)
使用说明
const funs = require('@jeebey/tt-funslib')
funs.throttle(function(){}, 1000)
import func from '@jeebey/tt-funclib'
let _person = func.defineProperty({},"name","张三")//属性追加
let _arrays = func.defineProperty([],0,"张三")//属性追加
let _object = func.objectSpread({},{lable1:1,label2:2},{label2:22, lable3:33})//属性叠加
