MCPcopy Create free account
hub / github.com/dop251/goja / Has

Method Has

object_dynamic.go:25–25  ·  view source on GitHub ↗

Has should return true if and only if the property exists.

(key string)

Source from the content-addressed store, hash-verified

23 Set(key string, val Value) bool
24 // Has should return true if and only if the property exists.
25 Has(key string) bool
26 // Delete the property for the key. Returns true on success (note, that includes missing property).
27 Delete(key string) bool
28 // Keys returns a list of all existing property keys. There are no checks for duplicates or to make sure

Callers 7

setOwnStrMethod · 0.65
setOwnIdxMethod · 0.65
setForeignStrMethod · 0.65
setForeignIdxMethod · 0.65
hasOwnPropertyStrMethod · 0.65
hasOwnPropertyIdxMethod · 0.65
nextMethod · 0.65

Implementers 2

testDynObjectobject_dynamic_test.go
testSharedDynObjectobject_dynamic_test.go

Calls

no outgoing calls

Tested by

no test coverage detected