function validate(hash) {
    if (typeof hash !== "number") {
        throw new Error("Not a number: " + hash);
    }

    if (hash !== (hash & 0x7fffffff)) {
        throw new Error("Not in range: " + hash);
    }
}
/**
 * Verify that the given value is valid as an id hash.
 */
Verify that the given value is valid as an id hash.
Verify that the given value is valid as an id hash .
function validate(hash) {
    if (typeof hash !== "number") {
        throw new Error("Not a number: " + hash);
    }
    if (hash !== (hash & 0x7fffffff)) {
        throw new Error("Not in range: " + hash);
    }
}
function validate ( hash ) { if ( typeof hash !== "number" ) { throw new Error ( "Not a number: " + hash ) ; } if ( hash !== ( hash & 0x7fffffff ) ) { throw new Error ( "Not in range: " + hash ) ; } }
Verify that the given value is valid as an id hash.
Verify that the given value is valid as an id hash .