github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/compiler/natives/src/internal/bytealg/bytealg.go (about) 1 // +build js 2 3 package bytealg 4 5 func Equal(a, b []byte) bool { 6 if len(a) != len(b) { 7 return false 8 } 9 for i, c := range a { 10 if c != b[i] { 11 return false 12 } 13 } 14 return true 15 }