/utils/mobile

Export the mobile utility method.

Methods

(inner) mobile(setWidthInPx) → {Boolean}

The mobile utility method can be used to set the widthInPx module variable or check whether the window.innerWidth is less or equal the widthInPx variable.

Parameters:
NameTypeDescription
setWidthInPxinteger

Set widthInPx

Returns:

Returns true if window.innerWidth is less than widthInPx

Type: 
Boolean