1.0.16 • Published 4 years ago

max-utils v1.0.16

Weekly downloads
19
License
ISC
Repository
github
Last release
4 years ago

max-utils

Javascript Utils

Build

yarn build

Test

yarn test

Istanbul coverage

yarn istanbul

Try in Runkit

Try in Runkit

Case

Type

  1. type

    type(data)

Time

  1. parseTime

    parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')

Data

  1. deepClone

    deepClone(data);

Number

  1. round

    round(number, decimals);

  2. random

    random(digit);

  3. sum

    sum(number1, number2, number3, ...);

  4. numberAddDot

    numberAddDot(number, ',');

Html

  1. copyText

    copyText(text, callback);

  2. download

    download(link, name);

Cookie

  1. setCookie

    setCookie(key, value, maxAge);

  2. getCookie

    getCookie(key);

  3. deleteCookie

    deleteCookie(key);

Browser

  1. queryString

    queryString(name);

  2. queryStringObj

    queryStringObj();

Others

  1. debounce

    debounce(function, delay);

  2. throttle

    throttle(function, delay);

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.12

4 years ago

1.0.11

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago