gruntfile.js
function minifyJSON(json) {
        var js = [];

        json.forEach(function (countryData) {
            var pairs = [];
            countryData.regions.forEach(function (info) {
                if (_.has(info, 'shortCode')) {
                    pairs.push(info.name + '~' + info.shortCode);
                } else {
                    pairs.push(info.name);
                }
            });

            var regionListStr = pairs.join('|');
            js.push([
                countryData.countryName,
                countryData.countryShortCode,
                regionListStr
            ]);
        });

        return js;
    }
function minifyJSON(json) {
        var js = [];

        json.forEach(function (countryData) {
            var pairs = [];
            countryData.regions.forEach(function (info) {
                if (_.has(info, 'shortCode')) {
                    pairs.push(info.name + '~' + info.shortCode);
                } else {
                    pairs.push(info.name);
                }
            });

            var regionListStr = pairs.join('|');
            js.push([
                countryData.countryName,
                countryData.countryShortCode,
                regionListStr
            ]);
        });

        return js;
    }
function minifyJSON ( json ) { var js = [ ] ; json . forEach ( function ( countryData ) { var pairs = [ ] ; countryData . regions . forEach ( function ( info ) { if ( _ . has ( info , 'shortCode' ) ) { pairs . push ( info . name + '~' + info . shortCode ) ; } else { pairs . push ( info . name ) ; } } ) ; var regionListStr = pairs . join ( '|' ) ; js . push ( [ countryData . countryName , countryData . countryShortCode , regionListStr ] ) ; } ) ; return js ; }
converts the data.json content from the country-region-data
converts the data . json content from the country - region - data