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

Method equals

string_unicode.go:404–414  ·  view source on GitHub ↗
(other unicodeString)

Source from the content-addressed store, hash-verified

402}
403
404func (s unicodeString) equals(other unicodeString) bool {
405 if len(s) != len(other) {
406 return false
407 }
408 for i, r := range s {
409 if r != other[i] {
410 return false
411 }
412 }
413 return true
414}
415
416func (s unicodeString) SameAs(other Value) bool {
417 return s.StrictEquals(other)

Callers 2

StrictEqualsMethod · 0.95
StrictEqualsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected