You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: alias.go
    path of file: ./repos/gopherjs/compiler/natives/src/golang.org/x/crypto/internal/alias
    
    the code of the file until where you have to start completion: //go:build js
// +build js

package alias

// This file duplicated is these two locations:
// - src/crypto/internal/subtle/aliasing.go
// - src/golang.org/x
    
func AnyOverlap(x, y []byte) bool {
	// GopherJS: We can't rely on pointer arithmetic, so use GopherJS slice internals.
	return len(x) > 0 && len(y) > 0 &&
		js.InternalObject(x).Get("$array") == js.InternalObject(y).Get("$array") &&
		js.InternalObject(x).Get("$offset").Int() <= js.InternalObject(y).Get("$offset").Int()+len(y)-1 &&
		js.InternalObject(y).Get("$offset").Int() <= js.InternalObject(x).Get("$offset").Int()+len(x)-1
}