scripts/drop_index.js
function warnIfNotLocal() {
  if (config.esclient.hosts.some((env) => { return env.host !== 'localhost'; } )) {
    console.log(colors.red(`WARNING: DROPPING SCHEMA NOT ON LOCALHOST: ${config.esclient.hosts[0].host}`));
  }

}
function warnIfNotLocal() {
  if (config.esclient.hosts.some((env) => { return env.host !== 'localhost'; } )) {
    console.log(colors.red(`WARNING: DROPPING SCHEMA NOT ON LOCALHOST: ${config.esclient.hosts[0].host}`));
  }

}
function warnIfNotLocal ( ) { if ( config . esclient . hosts . some ( ( env ) => { return env . host !== 'localhost' ; } ) ) { console . log ( colors . red ( ` ${ config . esclient . hosts [ 0 ] . host } ` ) ) ; } }
check all hosts to see if any is not localhost
check all hosts to see if any is not localhost