ui-kit-utils
v1.0.7
Published
A collection of useful utility functions
Downloads
9
Readme
ui-kit-utils
isTouch
import isTouch from 'ui-kit-utils/is-touch'
import utils from 'ui-kit-utils'
var isTouch = utils.isTouch
isTouch() //- true | false
getOffset
import getOffset from 'ui-kit-utils/get-offset'
import utils from 'ui-kit-utils'
var getOffset = utils.getOffset
getOffset(element) //- {top, left}