lib/readers/_common.js
function objectMapper(originalData, y, i){
  return this.getItem({
    x: this.getValueX(originalData[i], i),
    y: y
  }, originalData[i], i);
}
function objectMapper(originalData, y, i){
  return this.getItem({
    x: this.getValueX(originalData[i], i),
    y: y
  }, originalData[i], i);
}
function objectMapper ( originalData , y , i ) { return this . getItem ( { x : this . getValueX ( originalData [ i ] , i ) , y : y } , originalData [ i ] , i ) ; }
Remaps an initial item to a common working structure.

It is intended to be bound to a slayer instance.

@this {Slayer}
@param originalData {Array} The original array of data
@param y {Number} The value number detected as being a spike
@param i {Number} The index location of `y` in `originalData`
@returns {{x: *, y: Number}}
Remaps an initial item to a common working structure .