| 3584 | } |
| 3585 | |
| 3586 | Value Value::get(ArrayIndex index, const Value& defaultValue) const { |
| 3587 | const Value* value = &((*this)[index]); |
| 3588 | return value == &nullSingleton() ? defaultValue : *value; |
| 3589 | } |
| 3590 | |
| 3591 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 3592 |