@geektech/utils
TypeScript icon, indicating that this package has built-in type declarations

2.4.1 • Public • Published

utils

Dev

pnpm dev

Build

pnpm build

Test

pnpm test

Usage

Common

type

isArray(obj)

debounce

debounce(callback, delay)

throttle

throttle(callback, delay)

deepClone

deepClone(source)

memoize

memoize(callback)

timeFormat

timeFormat(time, format); // "yyyy-MM-dd hh:mm:ss"

Web

copyToClipboard

copyToClipboard(text); 

Model

EnumModel

const enums = new EnumModel(); 
enums.addEnum(value, display, alias)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.4.1
    2
    • latest

Version History

Package Sidebar

Install

npm i @geektech/utils

Weekly Downloads

15

Version

2.4.1

License

ISC

Unpacked Size

29.2 kB

Total Files

42

Last publish

Collaborators

  • jimmiemax