npm install --save locore
import {
sort,
max,
min,
unique,
debounce,
throttle,
deepClone,
extend,
delString,
insertString,
type,
isPrimitive,
} from 'locore';
- type 获取类型
- isPrimitive 判断是否为基本类型
- sort 数组排序
- max 数组最大元素
- min 数组最小元素
- unique 数组去重
- delString 删除指定长度的字符串
- insertString 插入字符串
- debounce 防抖
- throttle 节流
- deepClone 深拷贝
- extend 扩展
联系作者:qianduanka
locore、lodash、typescripts、qianduanka、sort、max、min、unique、debounce、throttle、deepClone、extend、delString、insertString、type、isPrimitive