MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / eq

Method eq

projects/JavaScript/proto/uuid.js:216–226  ·  view source on GitHub ↗

* Is this value equal to other one? * @this {UUID} * @param {UUID} other Other value * @returns {boolean} Equal result

(other)

Source from the content-addressed store, hash-verified

214 * @returns {boolean} Equal result
215 */
216 eq (other) {
217 if (!UUID.isUUID(other)) {
218 return false
219 }
220 for (let i = 0; i < this.data.length; i++) {
221 if (this.data[i] !== other.data[i]) {
222 return false
223 }
224 }
225 return true
226 }
227
228 /**
229 * Is this value not equal to other one?

Callers 10

neMethod · 0.95
test_enums.jsFile · 0.45
test_extending.jsFile · 0.45
test_clone.jsFile · 0.45
verifyDecimalFunction · 0.45
test_decimal.jsFile · 0.45
test_create.jsFile · 0.45

Calls 1

isUUIDMethod · 0.80

Tested by

no test coverage detected