@barchart/common-js
Version:
Library of common JavaScript utilities
22 lines (21 loc) • 650 B
TypeScript
/**
* A stateful {@link Specification} that passes when the value of the data item
* a changes. This specification will never pass on the first data item tested.
* Each invocation compares the previous data item to the current data item,
* which means the specification can only pass on the second (or subsequent)
* invocation.
*
* @public
* @extends {Specification}
*/
export default class Changes extends Specification {
/**
* @protected
* @override
* @param {*} data
* @returns {boolean}
*/
protected override _evaluate(data: any): boolean;
#private;
}
import Specification from './Specification.js';