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

Method IsStringPrimitive

plugin/plugin.go:162–164  ·  view source on GitHub ↗

IsStringPrimitive returns true if the object with a given name is a javascript primitive string

(name string)

Source from the content-addressed store, hash-verified

160// IsStringPrimitive returns true if the object with a
161// given name is a javascript primitive string
162func (p *Plugin) IsStringPrimitive(name string) bool {
163 return p.GetTypeObject(name) == "StringPrimitive"
164}
165
166// IsBooleanPrimitive returns true if the object with a
167// given name is a javascript primitive boolean, false otherwise

Callers

nothing calls this directly

Calls 1

GetTypeObjectMethod · 0.95

Tested by

no test coverage detected