module.exports={/** * Set Input Selection * @param {DOMElement} input The input element * @param {number} startPos The starting position * @param {nunber} endPos The ending position */setInputSelection:(input,startPos,endPos)=>{input.focus()if(typeofinput.selectionStart!=='undefined'){input.selectionStart=startPosinput.selectionEnd=endPos}elseif(document.selection&&document.selection.createRange){// IE branchinput.select()varrange=document.selection.createRange()range.collapse(true)range.moveEnd('character',endPos)range.moveStart('character',startPos)range.select()}