Lodash cloneDeep VS spread operator ts v1
Date tested:
2 years ago
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.77
Test name
Executions per second
Lodash cloneDeep
2132.7 Ops/sec
Spread operator
3690882.5 Ops/sec
Benchmark definition (click to collapse):
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var MyObject = { "productDefinitions": [{ "productId": "posh-177-0", "productNameUI": "posh", "productCategory": "living.home", "policyEffectiveDateMax": "posh.a.ing.vordatierung_max_date", "policyEffectiveDate": "posh.a.vertragseckdaten.vertragseckdaten.beginn", "insuredObjectsForQuote": [{ "code": "home", "parameters": [{ "key": "posh.a.spartenauswahl.sparten.hausrat_handlungsalternativen", "gapiAlias": "home.protection.content", "tags": [ "ENABLER", "PROTECTION_CONTENT" ], "isFlagQuestion": true, "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.spartenauswahl.sparten.phv_handlungsalternativen", "gapiAlias": "home.protection.liability", "tags": [ "ENABLER", "PROTECTION_LIABILITY" ], "isFlagQuestion": true, "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.spartenauswahl.sparten.wohngebaeude_handlungsalternativen", "gapiAlias": "home.protection.building", "tags": [ "ENABLER", "PROTECTION_BUILDING" ], "isFlagQuestion": true, "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.spartenauswahl.sparten.glas_handlungsalternativen", "gapiAlias": "home.protection.glass", "tags": [ "ENABLER", "PROTECTION_GLASS" ], "isFlagQuestion": true, "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.spartenauswahl.sparten.tierhalter_handlungsalternativen", "gapiAlias": "home.protection.pet", "tags": [ "ENABLER", "PROTECTION_PET" ], "isFlagQuestion": true, "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "pt.pers.gebdat", "gapiAlias": "policyholder.birthdate", "tags": [ "PROTECTION_CONTENT", "PROTECTION_LIABILITY", "PROTECTION_GLASS", "PROTECTION_PET", "PROTECTION_BUILDING" ] }, { "key": "posh.a.eigentuemer", "gapiAlias": "home.housingSituation", "tags": [ "PROTECTION_CONTENT", "PROTECTION_LIABILITY", "PROTECTION_GLASS", "PROTECTION_PET", "PROTECTION_BUILDING" ], "mandatory": true }, { "key": "posh.a.vertragseckdaten.vertragseckdaten.zahlweise", "gapiAlias": "insuredObject.periodicity", "tags": [ "PROTECTION_CONTENT", "PROTECTION_LIABILITY", "PROTECTION_GLASS", "PROTECTION_PET", "PROTECTION_BUILDING" ], "type": { "type": "ENUM", "valuesList": [{ "id": "1", "labelUI": "jährlich" }, { "id": "12", "labelUI": "monatlich" } ] } }, { "key": "posh.a.gebaeudetyp", "gapiAlias": "home.type", "tags": [ "PROTECTION_CONTENT", "PROTECTION_GLASS", "PROTECTION_BUILDING" ], "mandatory": true, "type": { "type": "ENUM", "valuesList": [{ "id": "1", "labelUI": "Einfamilienhaus" }, { "id": "2", "labelUI": "Zweifamilienhaus" }, { "id": "5", "labelUI": "Wohnung" } ] } }, { "key": "posh.a.hausrat.hausrat.selbstgenutztewohnflaeche", "gapiAlias": "home.totalLivingSurface", "tags": [ "PROTECTION_CONTENT" ], "type": { "unit": "m²" }, "validation": { "min": 15, "max": 300, "stepValue": 1 } }, { "key": "posh.a.privat.privat.familienstatus", "gapiAlias": "policyholder.familyComposition", "tags": [ "PROTECTION_LIABILITY" ], "mandatory": true, "type": { "valuesList": [{ "id": "900117", "labelUI": "Nur mich" }, { "id": "900124", "labelUI": "Mich und meine Kinder" }, { "id": "900116", "labelUI": "Mich und meine(n) Partner(in)" }, { "id": "900101", "labelUI": "Meine Familie" }, { "id": "900125", "labelUI": "Mich und meine(n) Mitbewohner(in)" } ] } }, { "key": "posh.a.privat.privat.vorschaden", "gapiAlias": "policyholder.numberOfPreviousClaims.liability", "tags": [ "PROTECTION_LIABILITY" ], "mandatory": true, "visible": true, "type": { "type": "ENUM" } }, { "key": "posh.a.hausrat.hausrat.vorschaden", "gapiAlias": "policyholder.numberOfPreviousClaims.content", "tags": [ "PROTECTION_CONTENT" ], "mandatory": true, "visible": true, "type": { "type": "ENUM" } }, { "key": "posh.d.vhv.antragsfragen.vorversicherung.kuendigung_vers", "gapiAlias": "policyholder.previouslyCancelled.content", "tags": [ "PROTECTION_CONTENT" ], "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.d.phv.antragsfragen.vorversicherung.kuendigung_vers", "gapiAlias": "policyholder.previouslyCancelled.liability", "tags": [ "PROTECTION_LIABILITY" ], "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.d.vgv.vorversicherung.gekuendigt_durch_versicherer", "gapiAlias": "policyholder.previouslyCancelled.building", "tags": [ "PROTECTION_BUILDING" ], "relatedKeys": [{ "key": "posh.d.vgv.vorversicherung.besteht", "fixedByParentValue": [{ "parentKeyValue": "2", "childrenRelatedKeyValue": "2" }] }], "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.versicherungsobjekt.versicherungsobjekt.baujahr", "gapiAlias": "home.building.yearOfConstruction", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "NUMERIC" }, "validation": { "minYearOffset": -998, "maxYearOffset": 1 } }, { "key": "posh.a.versicherungsobjekt.versicherungsobjekt.wohnflaeche", "gapiAlias": "home.building.totalSurface", "tags": [ "PROTECTION_GLASS", "PROTECTION_BUILDING" ], "type": { "unit": "m²" }, "validation": { "min": 15, "max": 300, "stepValue": 1 } }, { "key": "posh.a.versicherungsobjekt.versicherungsobjekt.gewerblich", "gapiAlias": "home.building.eligibilityConfirmation.hasCommercialUsage", "tags": [ "PROTECTION_BUILDING" ], "mandatory": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.wohngebaeude.gefahrenerhoehung.instandhaltungsmaengel", "gapiAlias": "home.building.eligibilityConfirmation.hasGoodConditions", "promptUI": "Es hat keine erkennbaren Bau- und/oder Instandhaltungs-Mängel", "tags": [ "PROTECTION_BUILDING" ], "inverseYesNo": true, "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.wohngebaeude.gefahrenerhoehung.weicherdachung", "gapiAlias": "home.building.eligibilityConfirmation.hasSoftRoof", "promptUI": "Es hat kein Weichdach", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.wohngebaeude.wohngebaeude.leerstandstatus", "gapiAlias": "home.building.eligibilityConfirmation.isInhabitedMoreThanSixMonths", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.wohngebaeude.gefahrenerhoehung.denkmalschutz", "gapiAlias": "home.building.isMonument", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.a.wohngebaeude.wertermittlung.dachform", "gapiAlias": "home.building.roofType", "tags": [ "PROTECTION_BUILDING" ] }, { "key": "posh.a.wohngebaeude.wertermittlung.geschossanzahl", "gapiAlias": "home.building.numberOfStories", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "NUMERIC" }, "validation": { "min": 1, "max": 10, "stepValue": 1 } }, { "key": "posh.a.wohngebaeude.wertermittlung.keller", "gapiAlias": "home.building.hasCellar", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "YESNO", "valuesList": null }, "triggers": [{ "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.building.hasCellar", "answerValue": "true" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.building.cellarSize" }] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.building.hasCellar", "answerValue": "false" }], "actions": [{ "type": "HIDE_QUESTION", "value": "home.building.cellarSize" }] } ], "mandatory": true }, { "key": "posh.a.wohngebaeude.wertermittlung.kellerqm", "gapiAlias": "home.building.cellarSize", "tags": [ "PROTECTION_BUILDING" ], "visible": true }, { "key": "posh.a.wohngebaeude.wertermittlung.garagen", "gapiAlias": "home.building.numberOfGarages", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "NUMERIC" }, "validation": { "min": 0, "max": 99, "stepValue": 1 } }, { "key": "posh.a.wohngebaeude.wertermittlung.carports", "gapiAlias": "home.building.numberOfCarports", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "NUMERIC" }, "validation": { "min": 0, "max": 9, "stepValue": 1 } }, { "key": "posh.a.wohngebaeude.wertermittlung.nebengebaeude_vorhanden", "gapiAlias": "home.building.hasSideBuilding", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "YESNO", "valuesList": null }, "triggers": [{ "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.building.hasSideBuilding", "answerValue": "true" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.building.sideBuildingTotalSize" }] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.building.hasSideBuilding", "answerValue": "false" }], "actions": [{ "type": "HIDE_QUESTION", "value": "home.building.sideBuildingTotalSize" }] } ], "mandatory": true }, { "key": "posh.a.wohngebaeude.wertermittlung.nebengebaeude", "gapiAlias": "home.building.sideBuildingTotalSize", "tags": [ "PROTECTION_BUILDING" ] }, { "key": "posh.d.vgv.wohngebaeude.vorschaden", "gapiAlias": "policyholder.numberOfPreviousClaims.building", "tags": [ "PROTECTION_BUILDING" ], "mandatory": true }, { "key": "posh.a.wohngebaeude.gefahrenerhoehung.leitungswasserschaeden", "gapiAlias": "policyholder.numberOfPreviousClaims.waterDamage", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "ENUM", "valuesList": [{ "id": "2", "labelUI": "Nein" }, { "id": "3", "labelUI": "Einmal" }, { "id": "4", "labelUI": "Mehr als einmal" } ] } }, { "key": "posh.d.vgv.vorversicherung.besteht", "gapiAlias": "home.building.hasPreviousInsurance", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "YESNO", "valuesList": null }, "triggers": [{ "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.building.hasPreviousInsurance", "answerValue": "true" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.building.previousInsurance.insurerName" }, { "type": "SHOW_QUESTION", "value": "home.building.previousInsurance.policyNumber" }, { "type": "HIDE_QUESTION", "value": "home.building.reasonNoInsurance" } ] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.building.hasPreviousInsurance", "answerValue": "false" }], "actions": [{ "type": "HIDE_QUESTION", "value": "home.building.previousInsurance.insurerName" }, { "type": "HIDE_QUESTION", "value": "home.building.previousInsurance.policyNumber" }, { "type": "SHOW_QUESTION", "value": "home.building.reasonNoInsurance" } ] } ], "mandatory": true }, { "key": "posh.d.vgv.antragsfragen.vorversicherung.gesellschaft", "gapiAlias": "home.building.previousInsurance.insurerName", "tags": [ "PROTECTION_BUILDING" ] }, { "key": "posh.d.vgv.antragsfragen.vorversicherung.versicherungsschein", "gapiAlias": "home.building.previousInsurance.policyNumber", "tags": [ "PROTECTION_BUILDING" ] }, { "key": "posh.d.wohngebaeude.vorvers.grund", "gapiAlias": "home.building.reasonNoInsurance", "tags": [ "PROTECTION_BUILDING" ], "promptUI": "Warum ist keine Vorversicherung vorhanden?", "visible": true, "mandatory": true, "editable": true, "values": [], "type": { "type": "ENUM", "valuesList": [{ "id": "1", "labelUI": "Zwangsversteigerung" }, { "id": "2", "labelUI": "Erbmasse" }, { "id": "3", "labelUI": "Bundeseigentum" }, { "id": "4", "labelUI": "Gebäude die letzten 2 Jahre unversichert" } ] } }, { "key": "posh.d.glasvers.antragsfragen.vorversicherung.kuendigung_vers", "gapiAlias": "policyholder.previouslyCancelled.glass", "tags": [ "PROTECTION_GLASS" ], "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.d.glasvers.glasvers.vorschaden", "gapiAlias": "policyholder.numberOfPreviousClaims.glass", "tags": [ "PROTECTION_GLASS" ] }, { "key": "posh.d.thv.antragsfragen.vorversicherung.kuendigung_vers", "gapiAlias": "policyholder.previouslyCancelled.pet", "tags": [ "PROTECTION_PET" ], "type": { "type": "YESNO", "valuesList": null } }, { "key": "posh.d.tierhalter.tierhalter.vorschaden", "gapiAlias": "policyholder.numberOfPreviousClaims.pet", "tags": [ "PROTECTION_PET" ] }, { "key": "posh.a.tierhalter.tierhalter.anzahl", "gapiAlias": "home.pet.numberOfDogs", "mandatory": true, "tags": [ "PROTECTION_PET" ], "triggers": [{ "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.pet.numberOfDogs", "answerValue": "0" }], "actions": [{ "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.0" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.1" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.2" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.3" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.4" } ] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.pet.numberOfDogs", "answerValue": "1" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.0" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.1" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.2" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.3" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.4" } ] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.pet.numberOfDogs", "answerValue": "2" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.0" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.1" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.2" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.3" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.4" } ] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.pet.numberOfDogs", "answerValue": "3" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.0" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.1" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.2" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.3" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.4" } ] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.pet.numberOfDogs", "answerValue": "4" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.0" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.1" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.2" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.3" }, { "type": "HIDE_QUESTION", "value": "home.pet.dogBreed.4" } ] }, { "evaluationType": "ALL", "conditions": [{ "dynamicParameterKey": "home.pet.numberOfDogs", "answerValue": "5" }], "actions": [{ "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.0" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.1" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.2" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.3" }, { "type": "SHOW_QUESTION", "value": "home.pet.dogBreed.4" } ] } ] }, { "gapiAlias": "home.pet.dogBreed.0", "key": "posh.a.tierhalter.tierhalter.rasse1_hund1", "tags": [ "PROTECTION_PET" ] }, { "gapiAlias": "home.pet.dogBreed.1", "key": "posh.a.tierhalter.tierhalter.rasse1_hund2", "tags": [ "PROTECTION_PET" ] }, { "gapiAlias": "home.pet.dogBreed.2", "key": "posh.a.tierhalter.tierhalter.rasse1_hund3", "tags": [ "PROTECTION_PET" ] }, { "gapiAlias": "home.pet.dogBreed.3", "key": "posh.a.tierhalter.tierhalter.rasse1_hund4", "tags": [ "PROTECTION_PET" ] }, { "gapiAlias": "home.pet.dogBreed.4", "key": "posh.a.tierhalter.tierhalter.rasse1_hund5", "tags": [ "PROTECTION_PET" ] }, { "key": "posh.a.tierhalter.tierhalter.zugtiere", "gapiAlias": "home.pet.numberOfMounts", "mandatory": true, "tags": [ "PROTECTION_PET" ], "validation": { "min": 0, "max": 45 } }, { "gapiAlias": "policyholder.givenName", "key": "pt.pers.vorname", "tags": [ "DOCUMENT_ADVISORY_PROTOCOL" ] }, { "gapiAlias": "policyholder.surname", "key": "pt.pers.name", "tags": [ "DOCUMENT_ADVISORY_PROTOCOL" ] }, { "gapiAlias": "policyholder.salutation", "key": "pt.pers.anrede", "tags": [ "DOCUMENT_ADVISORY_PROTOCOL" ], "type": { "type": "ENUM", "valuesList": [{ "id": "1", "labelUI": "Mr" }, { "id": "2", "labelUI": "Mrs" } ] } }, { "gapiAlias": "policyholder.residentialAddress.postCode", "key": "pt.pers.plz", "tags": [ "DOCUMENT_ADVISORY_PROTOCOL", "PROTECTION_LIABILITY" ] }, { "gapiAlias": "policyholder.residentialAddress.municipality", "key": "pt.pers.ort", "tags": [ "DOCUMENT_ADVISORY_PROTOCOL" ] }, { "gapiAlias": "policyholder.residentialAddress.streetAddressLine", "key": "pt.pers.strasse_hausnr", "tags": [ "DOCUMENT_ADVISORY_PROTOCOL" ] } ], "geographicalAddress": { "streetAddressLines": { "key": "posh.a.versicherungsobjekt.versicherungsobjekt.strasse", "relatedKeys": [{ "key": "posh.a.privat.privat.hausbesitzer.immobilien.z[0].versicherungsobjekt.versicherungsobjekt.strasse" }, { "key": "posh.a.privat.privat.oeltank.tanks.z[0].versicherungsobjekt.versicherungsobjekt.strasse" } ] }, "municipality": { "key": "posh.a.versicherungsobjekt.versicherungsobjekt.ort", "relatedKeys": [{ "key": "posh.a.privat.privat.hausbesitzer.immobilien.z[0].versicherungsobjekt.versicherungsobjekt.ort" }, { "key": "posh.a.privat.privat.oeltank.tanks.z[0].versicherungsobjekt.versicherungsobjekt.ort" } ] }, "postCode": { "key": "posh.a.versicherungsobjekt.versicherungsobjekt.plz_online", "relatedKeys": [{ "key": "posh.a.privat.privat.hausbesitzer.immobilien.z[0].versicherungsobjekt.versicherungsobjekt.plz_online" }, { "key": "posh.a.privat.privat.oeltank.tanks.z[0].versicherungsobjekt.versicherungsobjekt.plz_online" } ] }, "country": { "code": "DE", "name": "Deutschland" } } }], "coveragesSpecification": [{ "code": "LH_CG_BASIC_BUILDING", "nameUI": "Ihr Gebäude", "descriptionUI": "Falls Ihr Zuhause mal beschädigt wird, ist es gut geschützt.", "category": "BASIC", "coverages": [{ "code": "posh.a.wohngebaeude.wohngebaeude.premium", "gapiAlias": "home.building.extended", "tags": [ "PROTECTION_BUILDING" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [], "price": { "currency": "EUR", "grossPrice": "posh.e.ergebnis.vgv.premium_einzbeii" } }, { "code": "posh.a.spartenauswahl.sparten.wohngebaeude_handlungsalternativen", "gapiAlias": "home.building.base", "isFlagQuestion": true, "outputOnly": true, "tags": [ "PROTECTION_BUILDING" ], "insuredObjectsForQuoteCode": [ "home" ], "editable": false, "parameters": [], "price": { "currency": "EUR", "grossPrice": "posh.e.ergebnis.vgv.einzbeii" } } ], "parameters": [{ "key": "posh.a.wohngebaeude.wohngebaeude.selbstbeteiligung", "gapiAlias": "home.building.deductible", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "ENUM", "valuesList": [{ "id": "0", "labelUI": "nicht gewünscht" }, { "id": "150", "labelUI": "150" }, { "id": "300", "labelUI": "300" }, { "id": "600", "labelUI": "600" }, { "id": "900", "labelUI": "900" } ] } }] }, { "code": "LH_CG_BASIC_BUILDING_EXTRA", "nameUI": "Für Ihr Gebäude", "descriptionUI": "", "category": "UPSELL", "coverages": [{ "code": "posh.a.wohngebaeude.wohngebaeude.elementar", "gapiAlias": "home.building.additional.elemental", "tags": [ "PROTECTION_BUILDING" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [{ "key": "posh.a.wohngebaeude.wohngebaeude.elementar_selbstbeteiligung", "gapiAlias": "home.building.additional.elemental.deductible", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "ENUM", "valuesList": [{ "id": "0", "labelUI": "nicht gewünscht" }, { "id": "500", "labelUI": "500" }, { "id": "2500", "labelUI": "2500" } ] } }, { "key": "posh.d.vgvel.elementargefahren.elementargefahren.betroffen", "gapiAlias": "home.building.additional.elemental.damageInLastYears", "tags": [ "PROTECTION_BUILDING" ], "mandatory": true, "type": { "type": "YESNO", "valuesList": null } } ], "price": { "currency": "EUR", "grossPrice": "posh.e.ergebnis.vgv.elementar_einzbeii" } }, { "code": "posh.a.wohngebaeude.wohngebaeude.photovoltaik", "gapiAlias": "home.building.additional.photovoltaic", "tags": [ "PROTECTION_BUILDING" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [{ "key": "posh.a.wohngebaeude.wohngebaeude.photovoltaik_wert", "gapiAlias": "home.building.additional.photovoltaic.amount", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "MONETARY", "unit": "EUR", "valuesList": null }, "validation": { "min": 3000, "max": 150000, "stepValue": 1 } }], "price": { "grossPrice": "posh.e.ergebnis.vgv.photovoltaik_einzbeii", "currency": "EUR" } }, { "code": "posh.a.wohngebaeude.wohngebaeude.solar", "gapiAlias": "home.building.additional.geo", "tags": [ "PROTECTION_BUILDING" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [{ "key": "posh.a.wohngebaeude.wohngebaeude.solar_wert", "gapiAlias": "home.building.additional.geo.amount", "tags": [ "PROTECTION_BUILDING" ], "type": { "type": "MONETARY", "unit": "EUR", "valuesList": null }, "validation": { "min": 3000, "max": 150000, "stepValue": 1 } }], "price": { "currency": "EUR", "grossPrice": "posh.e.ergebnis.vgv.solarthermie_einzbeii" } } ], "parameters": [] }, { "code": "LH_CG_BASIC_BASE", "nameUI": "Ihr Hausrat", "descriptionUI": "Ihre Sachen sind abgesichert, falls sie beschädigt oder zu Hause bei einem Einbruch gestohlen werden – was wir nicht hoffen.", "category": "BASIC", "totalPrice": { "grossPrice": "posh.e.ergebnis.vhv.einzbeii", "currency": "EUR" }, "coverages": [{ "code": "posh.a.ing.vhv.base", "gapiAlias": "home.content.base", "tags": [ "PROTECTION_CONTENT" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [] }, { "code": "posh.a.ing.vhv.extended", "gapiAlias": "home.content.extended", "tags": [ "PROTECTION_CONTENT" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [] } ], "parameters": [{ "key": "posh.a.hausrat.hausrat.versicherungssumme", "gapiAlias": "home.content.coveredAmount", "tags": [ "PROTECTION_CONTENT" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [], "type": { "type": "MONETARY", "unit": "EUR", "valuesList": null }, "validation": { "min": 10000, "max": 195000, "stepValue": 1000 } }, { "key": "posh.a.hausrat.hausrat.selbstbeteiligung", "gapiAlias": "home.content.deductible", "tags": [ "PROTECTION_CONTENT" ], "type": { "type": "ENUM", "valuesList": [{ "id": "0", "labelUI": "nicht gewünscht" }, { "id": "150", "labelUI": "150" }, { "id": "300", "labelUI": "300" } ] } } ] }, { "code": "LH_CG_BASIC_BASE_EXTRA", "nameUI": "Für Ihren Hausrat", "descriptionUI": "", "category": "UPSELL", "coverages": [{ "code": "posh.a.hausrat.hausrat.reise", "gapiAlias": "home.content.additional.onTheGo", "tags": [ "PROTECTION_CONTENT" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [], "price": { "grossPrice": "posh.e.ergebnis.vhv.reise_einzbeii", "currency": "EUR" } }, { "code": "posh.a.hausrat.hausrat.fahrrad", "gapiAlias": "home.content.additional.bike", "tags": [ "PROTECTION_CONTENT" ], "insuredObjectsForQuoteCode": [ "home" ], "price": { "grossPrice": "posh.e.ergebnis.vhv.fahrrad_einzbeii", "currency": "EUR" }, "parameters": [{ "key": "posh.a.hausrat.hausrat.diebstahlsumme", "gapiAlias": "coverage.coveredAmount", "tags": [ "PROTECTION_CONTENT" ], "type": { "type": "MONETARY", "unit": "EUR", "valuesList": null }, "validation": { "min": 100, "max": 10000, "stepValue": 100 } }] }, { "code": "posh.a.hausrat.hausrat.elementar", "gapiAlias": "home.content.additional.elemental", "tags": [ "PROTECTION_CONTENT" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [{ "key": "posh.a.hausrat.hausrat.elementar_selbstbeteiligung", "gapiAlias": "home.content.additional.elemental.deductible", "tags": [ "PROTECTION_CONTENT" ], "type": { "type": "ENUM", "valuesList": [{ "id": "500", "labelUI": "500" }] } }, { "key": "posh.d.vhvel.elementargefahren.elementargefahren.betroffen", "gapiAlias": "home.content.additional.elemental.damageInLastYears", "tags": [ "PROTECTION_CONTENT" ], "mandatory": true, "type": { "type": "YESNO", "valuesList": null } } ], "price": { "grossPrice": "posh.e.ergebnis.vhv.elementar_einzbeii", "currency": "EUR" } } ], "parameters": [] }, { "code": "LH_CG_EXTRA_BUILDING_CONTENT", "nameUI": "Hilfe zu Hause", "descriptionUI": "Notfall-Services", "category": "UPSELL", "coverages": [{ "code": "posh.a.ing.schutzbrief", "gapiAlias": "home.building.homeAssistance", "tags": [ "PROTECTION_BUILDING", "PROTECTION_CONTENT" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [], "price": { "grossPrice": [ "posh.e.ergebnis.vgv.schutzbrief_einzbeii", "posh.e.ergebnis.vhv.schutzbrief_einzbeii" ], "currency": "EUR" } }], "parameters": [] }, { "code": "LH_CG_DAMAGE_BASE", "nameUI": "Ihre Haftpflicht", "descriptionUI": "Wenn Sie oder Ihre Familie anderen einen Schaden zufügen, sind Sie finanziell geschützt.", "category": "DAMAGE", "totalPrice": { "grossPrice": "posh.e.ergebnis.phv.priv_einzbeii", "currency": "EUR" }, "coverages": [{ "code": "posh.a.ing.phv.base", "gapiAlias": "home.liability.base", "tags": [ "PROTECTION_LIABILITY" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [] }, { "code": "posh.a.ing.phv.extended", "gapiAlias": "home.liability.extended", "tags": [ "PROTECTION_LIABILITY" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [] } ], "parameters": [{ "key": "posh.a.privat.privat.selbstbeteiligung", "gapiAlias": "home.liability.deductible", "tags": [ "PROTECTION_LIABILITY" ], "type": { "type": "MONETARY", "unit": "EUR", "valuesList": [{ "id": "0", "labelUI": "nicht gewünscht" }, { "id": "150", "labelUI": "150" }, { "id": "300", "labelUI": "300" } ] } }] }, { "code": "LH_CG_TPL_EXTRA", "nameUI": "Schutz, wenn Sie anderen schaden", "descriptionUI": "", "category": "UPSELL", "coverages": [{ "code": "posh.a.privat.privat.hausbesitzer.hausbesitzer", "gapiAlias": "home.liability.additional.ownerDamage", "tags": [ "PROTECTION_LIABILITY" ], "insuredObjectsForQuoteCode": [ "home" ], "price": { "grossPrice": "posh.e.ergebnis.phv.phb_einzbeii", "currency": "EUR" }, "parameters": [] }, { "code": "posh.a.privat.privat.delikt", "gapiAlias": "home.liability.additional.familyExtension", "tags": [ "PROTECTION_LIABILITY" ], "insuredObjectsForQuoteCode": [ "home" ], "price": { "grossPrice": "posh.e.ergebnis.phv.delikt_einzbeii", "currency": "EUR" }, "parameters": [] }, { "code": "posh.a.privat.privat.oeltank.oeltank", "gapiAlias": "home.liability.additional.oiltank", "tags": [ "PROTECTION_LIABILITY" ], "insuredObjectsForQuoteCode": [ "home" ], "price": { "grossPrice": "posh.e.ergebnis.phv.tank_einzbeii", "currency": "EUR" }, "parameters": [] } ], "parameters": [] }, { "code": "LH_CG_BASIC_GLASS", "nameUI": "Glasversicherung", "category": "BASIC", "totalPrice": { "grossPrice": "posh.e.ergebnis.tabelle.glas_bruttobeitrag", "currency": "EUR" }, "coverages": [{ "code": "posh.a.glasvers.glasvers.gebaeudeverglasung", "gapiAlias": "home.glass.building", "tags": [ "PROTECTION_GLASS" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [], "price": { "currency": "EUR", "grossPrice": "posh.e.ergebnis.glas.glasgebaeude_einzbeii" } }, { "code": "posh.a.glasvers.glasvers.mobiliarverglasung", "gapiAlias": "home.glass.content", "tags": [ "PROTECTION_GLASS" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [], "price": { "currency": "EUR", "grossPrice": "posh.e.ergebnis.glas.glasmobiliar_einzbeii" } } ], "parameters": [{ "key": "posh.a.glasvers.glasvers.selbstbeteiligung", "gapiAlias": "home.glass.deductible", "tags": [ "PROTECTION_GLASS" ], "type": { "type": "ENUM", "valuesList": [{ "id": "0", "labelUI": "nicht gewünscht" }, { "id": "150", "labelUI": "150" }, { "id": "300", "labelUI": "300" } ] } }] }, { "code": "LH_CG_BASIC_PET", "nameUI": "Tierhalterhaftpflicht", "category": "BASIC", "totalPrice": { "grossPrice": "posh.e.ergebnis.tabelle.thv_bruttobeitrag", "currency": "EUR" }, "coverages": [{ "outputOnly": true, "isFlagQuestion": true, "code": "posh.a.spartenauswahl.sparten.tierhalter_handlungsalternativen", "gapiAlias": "home.pet.base", "tags": [ "PROTECTION_PET" ], "insuredObjectsForQuoteCode": [ "home" ], "parameters": [], "price": { "currency": "EUR", "grossPrice": "posh.e.ergebnis.thv.einzbeii" } }], "parameters": [{ "key": "posh.a.tierhalter.tierhalter.selbstbeteiligung", "gapiAlias": "home.pet.deductible", "tags": [ "PROTECTION_PET" ], "type": { "type": "ENUM", "valuesList": [{ "id": "0", "labelUI": "nicht gewünscht" }, { "id": "150", "labelUI": "150" }, { "id": "300", "labelUI": "300" } ] } }] } ], "additionalServices": [{ "code": "home.paperCommunication", "parameters": [{ "key": "posh.a.vertragseckdaten.vertragseckdaten.papierkommunikation", "gapiAlias": "home.paperCommunication.enabled", "type": { "type": "YESNO", "valuesList": null } }] }], "explicitClauses": [{ "id": "posh.d.einverstaendnis.bestimmungen" }], "premiums": [{ "modality": { "code": "SCHEDULER" }, "financialScheduler": { "periodicity": { "code": "posh.a.vertragseckdaten.vertragseckdaten.zahlweise" }, "modalAmount": { "grossPrice": "posh.e.ergebnis.tabelle.posh_bruttobeitrag", "netPrice": "posh.e.ergebnis.tabelle.posh_nettobeitrag", "currency": "EUR" }, "endDate": null, "yearlyRenewalDate": null, "nextTransactionDate": null }, "paymentMode": null }], "contractualDocumentIds": [ "product.posh-177-0.contractualDocument" ], "additionalParameters": [] }] }; var myCopy = null;
Tests:
Lodash cloneDeep
myCopy = _.cloneDeep(MyObject);
Spread operator
myCopy = {...MyObject};
Open this result on MeasureThat.net