>DansTonCode();

Citation de code source en JavaScript197

 17 August 2014 à 09:30
function isNegative(number) { 
  if (number.match(/^-\d+$/)) {
    return true;
  } else {
    return false;
  }
}

Allez voir les citations similaires

Partagez cette citation

Prepare : 1.1870861053467ms Controller : 10.660886764526ms Render : 0.040054321289062ms Total : 11.888027191162ms array(17) { ["ru_oublock"]=> int(6032) ["ru_inblock"]=> int(672) ["ru_msgsnd"]=> int(0) ["ru_msgrcv"]=> int(0) ["ru_maxrss"]=> int(162840) ["ru_ixrss"]=> int(0) ["ru_idrss"]=> int(0) ["ru_minflt"]=> int(2394421) ["ru_majflt"]=> int(1) ["ru_nsignals"]=> int(0) ["ru_nvcsw"]=> int(11182) ["ru_nivcsw"]=> int(26879) ["ru_nswap"]=> int(0) ["ru_utime.tv_usec"]=> int(926798) ["ru_utime.tv_sec"]=> int(78) ["ru_stime.tv_usec"]=> int(972753) ["ru_stime.tv_sec"]=> int(10) }