index.js
function convertArray(arr, pluralize, opts) {
  if (arr.length !== pluralize.count) throw new Error('missing required length of plural formats: expected ' + pluralize.count + '; got ' + arr.length);

  return pluralize.formats.reduce(function(acc, key, i) {
    acc[key] = arr[i];
    return acc;
  }, {});
}
function convertArray(arr, pluralize, opts) {
  if (arr.length !== pluralize.count) throw new Error('missing required length of plural formats: expected ' + pluralize.count + '; got ' + arr.length);

  return pluralize.formats.reduce(function(acc, key, i) {
    acc[key] = arr[i];
    return acc;
  }, {});
}
function convertArray ( arr , pluralize , opts ) { if ( arr . length !== pluralize . count ) throw new Error ( 'missing required length of plural formats: expected ' + pluralize . count + '; got ' + arr . length ) ; return pluralize . formats . reduce ( function ( acc , key , i ) { acc [ key ] = arr [ i ] ; return acc ; } , { } ) ; }
Convert an array input to a CLDR object

@param {Array} arr
@param {Function} pluralize
@param {Object} opts
@return {Object}
Convert an array input to a CLDR object