isScrollable

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.is

Check if the passed element is scrollable or not

Params

  1. $elm*-HTMLElement

    The element to check

Return

  1. -Boolean

    true if is scrollable, false if not

Example

import { isScrollable } from '@blackbyte/sugar/is'
if (isScrollable($myElement)) {
  // do something
}

Todo

  • testsnormal