MCPcopy Create free account
hub / github.com/evilsocket/islazy / IsBooleanPrimitive

Method IsBooleanPrimitive

plugin/plugin.go:168–170  ·  view source on GitHub ↗

IsBooleanPrimitive returns true if the object with a given name is a javascript primitive boolean, false otherwise

(name string)

Source from the content-addressed store, hash-verified

166// IsBooleanPrimitive returns true if the object with a
167// given name is a javascript primitive boolean, false otherwise
168func (p *Plugin) IsBooleanPrimitive(name string) bool {
169 return p.GetTypeObject(name) == "BooleanPrimitive"
170}
171
172// IsNumberPrimitive returns true if the object with a
173// given name is a javascript primitive number, false otherwise

Callers

nothing calls this directly

Calls 1

GetTypeObjectMethod · 0.95

Tested by

no test coverage detected