MCPcopy Create free account
hub / github.com/dop251/goja / Equals

Method Equals

string_unicode.go:420–429  ·  view source on GitHub ↗
(other Value)

Source from the content-addressed store, hash-verified

418}
419
420func (s unicodeString) Equals(other Value) bool {
421 if s.StrictEquals(other) {
422 return true
423 }
424
425 if o, ok := other.(*Object); ok {
426 return s.Equals(o.toPrimitive())
427 }
428 return false
429}
430
431func (s unicodeString) StrictEquals(other Value) bool {
432 if otherStr, ok := other.(unicodeString); ok {

Callers

nothing calls this directly

Calls 2

StrictEqualsMethod · 0.95
toPrimitiveMethod · 0.80

Tested by

no test coverage detected