[GopherJS] Test if an Element Contains a Class

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


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

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