MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / isLesserThan

Method isLesserThan

src/scripts/versioning/version.ts:38–46  ·  view source on GitHub ↗
(other: Version, ignorePatchUpdate?: boolean)

Source from the content-addressed store, hash-verified

36 }
37
38 public isLesserThan(other: Version, ignorePatchUpdate?: boolean): boolean {
39 if (this.major !== other.major) {
40 return this.major < other.major;
41 }
42 if (this.minor !== other.minor) {
43 return this.minor < other.minor;
44 }
45 return ignorePatchUpdate ? false : this.patch < other.patch;
46 }
47
48 public isLesserThanOrEqualTo(other: Version, ignorePatchUpdate?: boolean): boolean {
49 return this.isEqualTo(other, ignorePatchUpdate) || this.isLesserThan(other, ignorePatchUpdate);

Callers 3

isLesserThanOrEqualToMethod · 0.95
testsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected