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