| 3560 | } |
| 3561 | |
| 3562 | Value Value::get(ArrayIndex index, const Value& defaultValue) const { |
| 3563 | const Value* value = &((*this)[index]); |
| 3564 | return value == &nullSingleton() ? defaultValue : *value; |
| 3565 | } |
| 3566 | |
| 3567 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 3568 |