jquery - Datatables remove this !!~ it doesnt return -


regarding in sample

i dont understand whats use of !!~

this script in fiddle

$.fn.datatable.ext.search.push(    function(settings, data, dataindex) {       var tdvalues=[];       var $tds=table.row(dataindex).nodes().to$().find('td');       $tds.each(function(){          var $this=$(this);          var hasselect=$this.find('select').length >0; // check if current cell has select box          var curtdvalue= hasselect ? $this.find('option:selected').text() : $this.text();          tdvalues.push(curtdvalue);       });       var rowvalues=tdvalues.join(' ');       return !!~rowvalues.tolowercase().indexof(table.search().tolowercase()); //<---this area    }      ); 

if remove !!~ doesnt return. cant see in manual of datatables $.fn.datatable.ext.search.push cant see in manual.

edited

this answered tilde or ~ how this? $.fn.datatable.ext.search.push


Comments

Popular posts from this blog

go - serving up pdfs using golang -

how to add preprocess loader in webpack 2 -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -