PropertyNames returns the names of the properties of the value.
()
| 543 | |
| 544 | // PropertyNames returns the names of the properties of the value. |
| 545 | func (v *Value) PropertyNames() ([]string, error) { |
| 546 | pList, err := v.propertyEnum() |
| 547 | if err != nil { |
| 548 | return nil, err |
| 549 | } |
| 550 | names := make([]string, len(pList)) |
| 551 | for i := 0; i < len(names); i++ { |
| 552 | names[i] = pList[i].ToString() |
| 553 | } |
| 554 | return names, nil |
| 555 | } |
| 556 | |
| 557 | // Has returns true if the value has the property with the given name. |
| 558 | func (v *Value) Has(name string) bool { |