schematics/src/ng-g/utils/pluralize.js
function interpolate(str, args) {
        return str.replace(/\$(\d{1,2})/g, function (match, index) {
            return args[index] || '';
        });
    }
function interpolate(str, args) {
        return str.replace(/\$(\d{1,2})/g, function (match, index) {
            return args[index] || '';
        });
    }
function interpolate ( str , args ) { return str . replace ( / \$(\d{1,2}) / g , function ( match , index ) { return args [ index ] || '' ; } ) ; }
Interpolate a regexp string.

@param  {string} str
@param  {Array}  args
@return {string}
Interpolate a regexp string .