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