code: function recordCursor(records, id) {
    var record;
    id = coerceId(id);
    for (var i = 0, len = records.length; i < len; i++) {
      record = records[i];
      if (coerceId(record.id) === id) {
        return {record: record, index: i};
      }
    }
  }
docs: Get the cursor of a record for a given ID
  
  @function recordCursor
  @param {Array} records
  @param {string|number} id
  @return {{record: Object, index: number}}