Install
npm i utils-lite -S
Start JS
use npm
// commonjs package is 'utils-lite/lib/index.cjs.js'
use cdn
Start CSS
Now css utils package has three file type: less, sass, stylus as index.less
/
index.sass
/index.styl
, you can choose one and import to you project, for example
'project-path/node_modules/utils-lite/index.less';.test .text-ellipsis
'project-path/node_modules/utils-lite/index.sass';.test @include text-ellipsis;
'project-path/node_modules/utils-lite/index.styl';.test text-ellipsis;
JS Utils List
debounce
throttle
get
path format: 'a.b.c'
set
clone
cloneDeep
getType
getTypeof
isObject
isArray
isFunction
isString
isBoolean
isEmptyObj
isNumber
getStore
setStore
kebabToCamel
camelToKebab
unique
getLinearValue
getFnAndObjValue
arrDelItem
arrDelArrItem
toArray
getArrayMin
extend
hasOwn
isEqual
chunk
CSS Utils List
text-ellipsis
.target .text-ellipsis
text-loading
.target .text-loading
License
MIT