JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q47792F
  • License ISC

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (locore) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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