1.1.0 • Published 6 years ago
simi v1.1.0
simi
common methods collection 4 JavaScript.
Already Have Methods
getCookie(name)
get cookiemd5(str, bit)
md5 stringhash(str)
hash a string to numberuuid(len, radix)
generate uuiddebounce(func, wait, immediate)
function debouncethrottle(func, wait, options)
function throttledeepClone(object)
object deepclonetype(variable)
judge variable type
How To Use
npm / cnpm install simi --save
yarn add simi
import simi from "simi"
simi.md5("simi")
simi.isAlpha()
or
import { md5, isAlpha } from "simi"
md5("simi")
isAlpha()
If you only use the few methods in simi, it is recommended to use the following writing method, which will make the packaged JS file smaller
import md5 from "simi/lib/md5"
md5("simi")