js-utils
js-utils copied to clipboard
π₯ A collection of some JavaScript utility functions for everyday use
A collection of some JavaScript utility functions for everyday use.
Take what you need! :v:
array
- fillArray()
- getClosestNumber()
- shuffle()
- toArray()
date
- daysInMonth()
detect
- getOrientation()
- getPixelRatio()
- hasAppleColorEmoji()
- hasEmojiSupport()
- hasLocalStorageSupport()
- hasSvgSupport()
- hasTouchScreen()
- isAndroid()
- isFireFoxOSApp()
- isIOS()
- isModernBrowser()
- hasWebComponentSupport()
element
- hasHorizontalScrollBar()
- hasVerticalScrollBar()
- isHidden()
function
- debounce()
- delay()
- isEmpty()
- noop()
- once()
- poll()
- selectContent()
number
- currencyFormat()
- pad()
- random()
object
- extend()
- isFunction()
- isString()
string
- removeLeadingSlash()
- slugify()
- stripEntities()
- stripTags()
- ucfirst()
url
- getAbsoluteUrl()
- getCurrentQueryString()
- getUrlHash()
- getUrlVars()
License
MIT Β© AndrΓ© Ruffert