@quinck/collections
Version:
Allows extra operations on JavaScript collections: Array, Map and Set.
11 lines (10 loc) • 395 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArrayIndexOutOfBoundsError = void 0;
class ArrayIndexOutOfBoundsError extends Error {
name = ArrayIndexOutOfBoundsError.name;
constructor(array, index) {
super(`Index ${index} out of bounds for length ${array?.length}`);
}
}
exports.ArrayIndexOutOfBoundsError = ArrayIndexOutOfBoundsError;