Javascript Utils
yarn build
yarn test
yarn istanbul
- type
type(data)
- parseTime
parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
- deepClone
deepClone(data);
- round
round(number, decimals);
- random
random(digit);
- sum
sum(number1, number2, number3, ...);
- numberAddDot
numberAddDot(number, ',');
- copyText
copyText(text, callback);
- download
download(link, name);
- setCookie
setCookie(key, value, maxAge);
- getCookie
getCookie(key);
- deleteCookie
deleteCookie(key);
- queryString
queryString(name);
- queryStringObj
queryStringObj();
- debounce
debounce(function, delay);
- throttle
throttle(function, delay);