Joined March 2018
·

pitter

Software Engineer at Nodo
·
Pelotas, Brazil
·
·

const isEmpty = function (input) {
  if (typeof input === 'array') {
    return input.length === 0;
  }

  return !input || Object.keys(input).length === 0;
}