dist/utilify.esm.js
function filteredRegion(state) {
        var _this2 = this;

        var filteredRegion = '';

        var _loop = function _loop(region) {
            if ({}.hasOwnProperty.call(_this2._regionMap, region)) {
                _this2._regionMap[region].some(function (el, i, arr) {
                    if (stringHelpers.removeAccent(el.toLowerCase()) === stringHelpers.removeAccent(state.toLowerCase())) {
                        filteredRegion = region;
                    }
                });
            }
        };

        for (var region in this._regionMap) {
            _loop(region);
        }

        return filteredRegion;
    }
function filteredRegion(state) {
        var _this2 = this;

        var filteredRegion = '';

        var _loop = function _loop(region) {
            if ({}.hasOwnProperty.call(_this2._regionMap, region)) {
                _this2._regionMap[region].some(function (el, i, arr) {
                    if (stringHelpers.removeAccent(el.toLowerCase()) === stringHelpers.removeAccent(state.toLowerCase())) {
                        filteredRegion = region;
                    }
                });
            }
        };

        for (var region in this._regionMap) {
            _loop(region);
        }

        return filteredRegion;
    }
function filteredRegion ( state ) { var _this2 = this ; var filteredRegion = '' ; var _loop = function _loop ( region ) { if ( { } . hasOwnProperty . call ( _this2 . _regionMap , region ) ) { _this2 . _regionMap [ region ] . some ( function ( el , i , arr ) { if ( stringHelpers . removeAccent ( el . toLowerCase ( ) ) === stringHelpers . removeAccent ( state . toLowerCase ( ) ) ) { filteredRegion = region ; } } ) ; } } ; for ( var region in this . _regionMap ) { _loop ( region ) ; } return filteredRegion ; }
Get Brazilian region for an state initials given

@param  {String}  state  Initials state (e.g. 'SP')
@return {String}         Region (Norte, Sul, etc.)
@example
locationHelpers.filteredRegion('SP'); // Sudeste
Get Brazilian region for an state initials given