HasIdx returns true if the value has the property with the given index.
(idx uint32)
| 563 | |
| 564 | // HasIdx returns true if the value has the property with the given index. |
| 565 | func (v *Value) HasIdx(idx uint32) bool { |
| 566 | prop := v.ctx.NewAtomIdx(idx) |
| 567 | defer prop.Free() |
| 568 | return C.JS_HasProperty(v.ctx.ref, v.ref, prop.ref) == 1 |
| 569 | } |
| 570 | |
| 571 | // Delete deletes the property with the given name. |
| 572 | func (v *Value) Delete(name string) bool { |