src/utils/json.js
/**
 * Recreates objects with prototype-less copies.
 * @param {!JsonObject} obj
 * @return {!JsonObject}
 */
Recreates objects with prototype-less copies.
Recreates objects with prototype - less copies .
function recreateNonProtoObject(obj) {
  const copy = Object.create(null);
  for (const k in obj) {
    if (!hasOwnProperty(obj, k)) {
      continue;
    }
    const v = obj[k];
    copy[k] = isObject(v) ? recreateNonProtoObject(v) : v;
  }
  return  (copy);
}
function recreateNonProtoObject ( obj ) { const copy = Object . create ( null ) ; for ( const k in obj ) { if ( ! hasOwnProperty ( obj , k ) ) { continue ; } const v = obj [ k ] ; copy [ k ] = isObject ( v ) ? recreateNonProtoObject ( v ) : v ; } return ( copy ) ; }
Recreates objects with prototype-less copies.
Recreates objects with prototype - less copies .
/** @type {!JsonObject} */