src/loaders/solc-json/index.js
function solcOutputLike(obj) {
  let isSolcLike = false;

  Object.keys(obj).forEach((key) => {
    if (!isSolcLike && typeof obj[key] === 'object') {
      isSolcLike = (typeof obj[key].bytecode === 'string'
                 && typeof obj[key].interface === 'string');
    }
  });

  return isSolcLike;
}
function solcOutputLike(obj) {
  let isSolcLike = false;

  Object.keys(obj).forEach((key) => {
    if (!isSolcLike && typeof obj[key] === 'object') {
      isSolcLike = (typeof obj[key].bytecode === 'string'
                 && typeof obj[key].interface === 'string');
    }
  });

  return isSolcLike;
}
function solcOutputLike ( obj ) { let isSolcLike = false ; Object . keys ( obj ) . forEach ( ( key ) => { if ( ! isSolcLike && typeof obj [ key ] === 'object' ) { isSolcLike = ( typeof obj [ key ] . bytecode === 'string' && typeof obj [ key ] . interface === 'string' ) ; } } ) ; return isSolcLike ; }
like solc output
like solc output