1.0.16 • Published 2 years ago
max-utils v1.0.16
max-utils
Javascript Utils
Build
yarn build
Test
yarn test
Istanbul coverage
yarn istanbul
Try in Runkit
Case
Type
- type
type(data)
Time
- parseTime
parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
Data
- deepClone
deepClone(data);
Number
- round
round(number, decimals);
- random
random(digit);
- sum
sum(number1, number2, number3, ...);
- numberAddDot
numberAddDot(number, ',');
Html
- copyText
copyText(text, callback);
- download
download(link, name);
Cookie
- setCookie
setCookie(key, value, maxAge);
- getCookie
getCookie(key);
- deleteCookie
deleteCookie(key);
Browser
- queryString
queryString(name);
- queryStringObj
queryStringObj();
Others
- debounce
debounce(function, delay);
- throttle
throttle(function, delay);
1.0.16
2 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago