index.js
function isUSAState (state, strict) {
    state = state && NODE_RATIFY.isString(state) ? _toTitleCase(state) : null;
    var topLevel = (US_STATE_CODE_TO_NAME[state] || US_STATE_NAME_TO_CODE[state]);

    if(strict) {
        return topLevel ? true : false;
    } else {
        return (US_INHABITED_TERRITORIES_CODE_TO_NAME[state] || US_INHABITED_TERRITORIES_NAME_TO_CODE[state] || topLevel) ? true : false;
    }
}
function isUSAState (state, strict) {
    state = state && NODE_RATIFY.isString(state) ? _toTitleCase(state) : null;
    var topLevel = (US_STATE_CODE_TO_NAME[state] || US_STATE_NAME_TO_CODE[state]);

    if(strict) {
        return topLevel ? true : false;
    } else {
        return (US_INHABITED_TERRITORIES_CODE_TO_NAME[state] || US_INHABITED_TERRITORIES_NAME_TO_CODE[state] || topLevel) ? true : false;
    }
}
function isUSAState ( state , strict ) { state = state && NODE_RATIFY . isString ( state ) ? _toTitleCase ( state ) : null ; var topLevel = ( US_STATE_CODE_TO_NAME [ state ] || US_STATE_NAME_TO_CODE [ state ] ) ; if ( strict ) { return topLevel ? true : false ; } else { return ( US_INHABITED_TERRITORIES_CODE_TO_NAME [ state ] || US_INHABITED_TERRITORIES_NAME_TO_CODE [ state ] || topLevel ) ? true : false ; } }
Is given state code or state name is a valid state
Is given state code or state name is a valid state