Javascript Number isDivisor(a)

Description

Javascript Number isDivisor(a)

Number.prototype.isDivisor = function(a){
  var ans = false;
  if((this/a).isInteger()){
    var ans = true;
  }/*from  ww  w .ja  v  a  2 s  .c o  m*/
  return ans;
}



PreviousNext

Related