@barchart/common-js
Version:
Library of common JavaScript utilities
24 lines (23 loc) • 578 B
TypeScript
/**
* A {@link Specification} that passes when the absolute difference between the
* first item and second items in an array is less than or equal to a tolerance
* value.
*
* @public
* @extends {Specification}
*/
export default class Within extends Specification {
/**
* @param {number} tolerance
*/
constructor(tolerance: number);
/**
* @protected
* @override
* @param {*} data
* @returns {boolean}
*/
protected override _evaluate(data: any): boolean;
#private;
}
import Specification from './../Specification.js';