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

  return flatten(input).filter(Boolean).map(function (link) {
    return normalizeLink(base, link);
  });
}
function normalizeLinks(base, input) {
  if (!input) return;
  if (!Array.isArray(input)) input = [ input ];

  return flatten(input).filter(Boolean).map(function (link) {
    return normalizeLink(base, link);
  });
}
function normalizeLinks ( base , input ) { if ( ! input ) return ; if ( ! Array . isArray ( input ) ) input = [ input ] ; return flatten ( input ) . filter ( Boolean ) . map ( function ( link ) { return normalizeLink ( base , link ) ; } ) ; }
Takes the `input` links value and normalizes it into a single array.

@param {String} base   The base URL for this API.
@param {Object} input  The links value to normalize.
@return {Array}
Takes the input links value and normalizes it into a single array .