pluralize = function (records) {

    // If `records` is a non-array object,
    // turn it into a single-item array ("pluralize" it)
    // e.g. { id: 7 } -----> [ { id: 7 } ]
    if ( !_.isArray(records) ) {
      var record = records;
      records = [record];
    }

    // If a list of ids things look ids (finite numbers or strings),
    // wrap them up as dummy objects; e.g. [1,2] ---> [ {id: 1}, {id: 2} ]
    var self = this;
    return _.map(records, function (record) {
      if ( _.isString(record) || _.isFinite(record) ) {
        var id = record;
        var data = {};
        data[self.primaryKey] = id;
        return data;
      }
      if (_.isNull(record) || _.isUndefined(record)) {
        throw new Error('Could not coerce value into an array of records!');
      }
      return record;
    });
  }
Check that records are a list, if not, make them a list
Also if they are ids, make them dummy objects with an `id` property

@param {Object|Array|String|Finite} records
@returns {Array} array of things that have an `id` property

@api private
@synchronous