doc/api/testing/recorded.md
Rx.Recorded classRecord of a value including the virtual time it was produced on.
Recorded ConstructorRecorded Instance MethodsRecorded Instance PropertiesRx.Recorded(time, value, [comparer])<a href="#rxrecordedtime-value-comparer">#</a> Ⓢ
Creates a new object recording the production of the specified value at the given virtual time.
time (Number): Virtual time the value was produced on.value (Any): Value that was produced[comparer] (Function): Optional comparer function.var recorded = new Rx.Recorded(200, 'value');
console.log(recorded.time);
// => 200
console.log(recorded.value);
// => value
Rx.Recorded.prototype.equals(other)<a href="#rxrecordedprototypeequalsother">#</a> Ⓢ
Checks whether the given recorded object is equal to the current instance.
other (Recorded): Recorded object to check for equality.(Boolean): Returns true if the Recorded equals the other, else false.
var r1 = new Recorded(201, 'foo');
var r2 = new Recorded(201, 'bar');
var r3 = new Recorded(201, 'foo');
console.log(r1.equals(r2));
// => false
console.log(r1.equals(r3));
// => true
Rx.Recorded.prototype.toString()<a href="#rxrecordedprototypeequalsother">#</a> Ⓢ
Returns a string representation of the current Recorded value.
(String): String representation of the current Recorded value.
var r1 = new Recorded(201, 'foo');
console.log(r1.toString());
// => foo@201
time<a href="#time">#</a> Ⓢ
Gets the virtual time the value was produced on.
(Number): The virtual time the value was produced on.
var r1 = new Recorded(201, 'foo');
console.log(r1.time);
// => 201
value<a href="#value">#</a> Ⓢ
Gets the recorded value.
(Number): The recorded value.
var r1 = new Recorded(201, 'foo');
console.log(r1.value);
// => foo