get greater()
The get accessor obtains from the private #greater property an instance of the Greater
Inequality.prototype.greater
Inequality.prototype.greaterpublic get greater(): Greater<Value> {
return this.#greater;
}Return type
Returns
Example usage
// Example usage.
import { Inequality } from '@angular-package/range';
// Define the `Year` class and extend it with `Inequality`.
class Year<Value extends number> extends Inequality<Value> {}
// Initialize `Year`.
const year = new Year(1981);
// Returns Year {1981} of Year<1981>.
year;
// Returns Greater {1981} of Greater<1981>
year.greater;
// Returns `false`.
year.greater.than(1982);
// Returns `false`.
year.greater.thanEvery(1981, 1982, 1983);
// Returns `true`.
year.greater.thanSome(1981, 1980, 1979);Last updated