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

Method IsNumberPrimitive

plugin/plugin.go:174–176  ·  view source on GitHub ↗

IsNumberPrimitive returns true if the object with a given name is a javascript primitive number, false otherwise

(name string)

Source from the content-addressed store, hash-verified

172// IsNumberPrimitive returns true if the object with a
173// given name is a javascript primitive number, false otherwise
174func (p *Plugin) IsNumberPrimitive(name string) bool {
175 return p.GetTypeObject(name) == "NumberPrimitive"
176}
177
178// IsArrayObject returns true if the object with a
179// given name is a javascript array object, false otherwise

Callers

nothing calls this directly

Calls 1

GetTypeObjectMethod · 0.95

Tested by

no test coverage detected