Check if an element can contain selectable text
$ npm install @f/can-select-text
var canSelectText = require('@f/can-select-text')
canSelectText(textInput) === true
canSelectText(checkboxInput) === false
node
- A DOM element to check for text selectability
Returns: A boolean value indicating whether or not text can be selected in this input
MIT