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

2.3.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)

/@geektech/utils/

    Package Sidebar

    Install

    npm i @geektech/utils

    Weekly Downloads

    4

    Version

    2.3.1

    License

    ISC

    Unpacked Size

    28.7 kB

    Total Files

    42

    Last publish

    Collaborators

    • jimmiemax