index.js
function minimize(data) {
  if (!Array.isArray(data)) {
    throw new Error('EspressoLogicMinimizer: expected an array, got a ' + typeof data);
  }

  const badContent = data.filter((element) => typeof element != 'string');

  if (badContent.length > 0) {
    throw new Error('EspressoLogicMinimizer: incorrect data content. Only strings are supported: ' + badContent);
  }

  return EspressoLogicMinimizer.minimize_from_data(data);
}
function minimize(data) {
  if (!Array.isArray(data)) {
    throw new Error('EspressoLogicMinimizer: expected an array, got a ' + typeof data);
  }

  const badContent = data.filter((element) => typeof element != 'string');

  if (badContent.length > 0) {
    throw new Error('EspressoLogicMinimizer: incorrect data content. Only strings are supported: ' + badContent);
  }

  return EspressoLogicMinimizer.minimize_from_data(data);
}
function minimize ( data ) { if ( ! Array . isArray ( data ) ) { throw new Error ( 'EspressoLogicMinimizer: expected an array, got a ' + typeof data ) ; } const badContent = data . filter ( ( element ) => typeof element != 'string' ) ; if ( badContent . length > 0 ) { throw new Error ( 'EspressoLogicMinimizer: incorrect data content. Only strings are supported: ' + badContent ) ; } return EspressoLogicMinimizer . minimize_from_data ( data ) ; }
Applies the Espresso Heuristic Logic Minimizer algorithm to the provided
data in PLA format

@param {Array} data
@returns {Array}
Applies the Espresso Heuristic Logic Minimizer algorithm to the provided data in PLA format