code: 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;
  }
docs: like solc output