dist/src/SortedDictionary.js
/**
     * Validates the passed index
     * @param index Index to check
     * @param length length of the dictionary
     * @throws Throws an error if the index position is out of bound
     */
Validates the passed index
@param index Index to check
@param length length of the dictionary
@throws Throws an error if the index position is out of bound
Validates the passed index @param index Index to check @param length length of the dictionary @throws Throws an error if the index position is out of bound
checkIndex(index, length) {
        if (index < 0 || index >= length) {
            throw new Error("The index " + index + " is out of bound");
        }
    }
checkIndex ( index , length ) { if ( index < 0 || index >= length ) { throw new Error ( "The index " + index + " is out of bound" ) ; } }
Validates the passed index
 @param index Index to check
 @param length length of the dictionary
 @throws Throws an error if the index position is out of bound
Validates the passed index @param index Index to check @param length length of the dictionary @throws Throws an error if the index position is out of bound