locore

0.0.0-beta.1 • Public • Published

locore

安装

npm install --save locore

使用

import {
  sort,
  max,
  min,
  unique,
  debounce,
  throttle,
  deepClone,
  extend,
  delString,
  insertString,
  type,
  isPrimitive,
} from 'locore';

目录

类型

  1. type 获取类型
  2. isPrimitive 判断是否为基本类型

数组

  1. sort 数组排序
  2. max 数组最大元素
  3. min 数组最小元素
  4. unique 数组去重

字符串

  1. delString 删除指定长度的字符串
  2. insertString 插入字符串

函数

  1. debounce 防抖
  2. throttle 节流

对象

  1. deepClone 深拷贝
  2. extend 扩展

微信号

联系作者:qianduanka

网站

https://www.qianduanka.com

前端咖公众号

公众号

前端咖小程序

公众号

关键词

locore、lodash、typescripts、qianduanka、sort、max、min、unique、debounce、throttle、deepClone、extend、delString、insertString、type、isPrimitive

Package Sidebar

Install

npm i locore

Weekly Downloads

4

Version

0.0.0-beta.1

License

ISC

Unpacked Size

27.1 kB

Total Files

14

Last publish

Collaborators

  • qianduanka