function addIgnoreFromInput(input) {
  let patterns = [];
  if (input) {
    patterns = patterns.concat(input);
  }
  patterns.forEach(addIgnorePattern);
}
Adds ignore patterns directly from function input
@param {String|Array<String>} input - the ignore patterns