stringify function and replacer parameter
stringify function and replacer parameter

The replacer parameter for stringify can be either a function or an array. As a function, it takes two parameters, the key and the value being stringified. The object in which the key was found is provided as the replacer's this parameter.
sirwilliam/angular-utility