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

  return flatten(input).filter(Boolean).map(function (action) {
    return normalizeAction(base, action);
  });
}
function normalizeActions(base, input) {
  if (!input) return;
  if (!Array.isArray(input)) input = [ input ];

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

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