see if in pointer lock js code example
Example 1: golang check if key is in map
if val, ok := dict["foo"]; ok {
//do something here
}
Example 2: check if a key is in a map
if ( m.find("f") == m.end() ) {
// not found
} else {
// found
}
if val, ok := dict["foo"]; ok {
//do something here
}
if ( m.find("f") == m.end() ) {
// not found
} else {
// found
}