[GopherJS] Test if an Element Contains a Class


func IsContainClass(elm *js.Object, class string) bool {
      return elm.Get("classList").Call("contains", class).Bool()
}

References:

[1]GopherJS - A compiler from Go to JavaScript (GitHub, GopherJS Playground, godoc)
[2]

javascript check class exists - Google search

javascript - Test if an element contains a class? - Stack Overflow

[3]GitHub - siongui/gopherjs-utils: useful collections of utilites (functions) for front end (browser) development via GopherJS