private/utils/dev-fixtures/fixtures.js
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};
    }
  }
}
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};
    }
  }
}
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 } ; } } }
Get the cursor of a record for a given ID

@function recordCursor
@param {Array} records
@param {string|number} id
@return {{record: Object, index: number}}
Get the cursor of a record for a given ID