index.js
function normalizeFields(input) {
  if (!input) return;
  if (!Array.isArray(input)) input = [ input ];

  return flatten(input).filter(Boolean).map(normalizeField);
}
function normalizeFields(input) {
  if (!input) return;
  if (!Array.isArray(input)) input = [ input ];

  return flatten(input).filter(Boolean).map(normalizeField);
}
function normalizeFields ( input ) { if ( ! input ) return ; if ( ! Array . isArray ( input ) ) input = [ input ] ; return flatten ( input ) . filter ( Boolean ) . map ( normalizeField ) ; }
Takes the `input` fields value and normalizes it into a single array.

@param {Mixed} input  The links value to normalize.
@return {Array}
Takes the input fields value and normalizes it into a single array .