function transform(v, replacer = (k, v) => v) {
  return transform_(replacer('', v), replacer);
}
Works like JSON.stringify, except returns the transformed structure.
@param {*} v Value to transform.
@param {Function=} replacer