function log(/*...arg*/) {
  if (logs_enabled) {
    console.log.apply(console, [].slice.call(arguments));
  }
}
// logs only when log_enabled is set to true
logs only when log_enabled is set to true
logs only when log_enabled is set to true
function log() {
  if (logs_enabled) {
    console.log.apply(console, [].slice.call(arguments));
  }
}
function log ( ) { if ( logs_enabled ) { console . log . apply ( console , [ ] . slice . call ( arguments ) ) ; } }
logs only when log_enabled is set to true
logs only when log_enabled is set to true
/*...arg*/