Remove property from object

Benchmark created on


Setup

const sampleObject = {
      "Account": "#/definitions/Account",
      "ActivityDefinition": "#/definitions/ActivityDefinition",
      "AdverseEvent": "#/definitions/AdverseEvent",
      "AllergyIntolerance": "#/definitions/AllergyIntolerance",
      "Appointment": "#/definitions/Appointment",
      "AppointmentResponse": "#/definitions/AppointmentResponse",
      "AuditEvent": "#/definitions/AuditEvent",
      "Basic": "#/definitions/Basic",
      "Binary": "#/definitions/Binary",
      "BiologicallyDerivedProduct": "#/definitions/BiologicallyDerivedProduct",
      "BodyStructure": "#/definitions/BodyStructure",
      "Bundle": "#/definitions/Bundle",
      "CapabilityStatement": "#/definitions/CapabilityStatement",
      "CarePlan": "#/definitions/CarePlan",
      "CareTeam": "#/definitions/CareTeam",
      "CatalogEntry": "#/definitions/CatalogEntry",
      "ChargeItem": "#/definitions/ChargeItem",
      "ChargeItemDefinition": "#/definitions/ChargeItemDefinition",
      "Claim": "#/definitions/Claim",
      "ClaimResponse": "#/definitions/ClaimResponse",
      "ClinicalImpression": "#/definitions/ClinicalImpression",
      "CodeSystem": "#/definitions/CodeSystem",
      "Communication": "#/definitions/Communication",
      "CommunicationRequest": "#/definitions/CommunicationRequest",
      "CompartmentDefinition": "#/definitions/CompartmentDefinition",
      "Composition": "#/definitions/Composition",
      "ConceptMap": "#/definitions/ConceptMap",
      "Condition": "#/definitions/Condition",
      "Consent": "#/definitions/Consent",
      "Contract": "#/definitions/Contract",
      "Coverage": "#/definitions/Coverage",
      "CoverageEligibilityRequest": "#/definitions/CoverageEligibilityRequest",
      "CoverageEligibilityResponse": "#/definitions/CoverageEligibilityResponse",
      "DetectedIssue": "#/definitions/DetectedIssue",
      "Device": "#/definitions/Device",
      "DeviceDefinition": "#/definitions/DeviceDefinition",
      "DeviceMetric": "#/definitions/DeviceMetric",
      "DeviceRequest": "#/definitions/DeviceRequest",
      "DeviceUseStatement": "#/definitions/DeviceUseStatement",
      "DiagnosticReport": "#/definitions/DiagnosticReport",
      "DocumentManifest": "#/definitions/DocumentManifest",
      "DocumentReference": "#/definitions/DocumentReference",
      "EffectEvidenceSynthesis": "#/definitions/EffectEvidenceSynthesis",
      "Encounter": "#/definitions/Encounter",
      "Endpoint": "#/definitions/Endpoint",
      "EnrollmentRequest": "#/definitions/EnrollmentRequest",
      "EnrollmentResponse": "#/definitions/EnrollmentResponse",
      "EpisodeOfCare": "#/definitions/EpisodeOfCare",
      "EventDefinition": "#/definitions/EventDefinition",
      "Evidence": "#/definitions/Evidence",
      "EvidenceVariable": "#/definitions/EvidenceVariable",
      "ExampleScenario": "#/definitions/ExampleScenario",
      "ExplanationOfBenefit": "#/definitions/ExplanationOfBenefit",
      "FamilyMemberHistory": "#/definitions/FamilyMemberHistory",
      "Flag": "#/definitions/Flag",
      "Goal": "#/definitions/Goal",
      "GraphDefinition": "#/definitions/GraphDefinition",
      "Group": "#/definitions/Group",
      "GuidanceResponse": "#/definitions/GuidanceResponse",
      "HealthcareService": "#/definitions/HealthcareService",
      "ImagingStudy": "#/definitions/ImagingStudy",
      "Immunization": "#/definitions/Immunization",
      "ImmunizationEvaluation": "#/definitions/ImmunizationEvaluation",
      "ImmunizationRecommendation": "#/definitions/ImmunizationRecommendation",
      "ImplementationGuide": "#/definitions/ImplementationGuide",
      "InsurancePlan": "#/definitions/InsurancePlan",
      "Invoice": "#/definitions/Invoice",
      "Library": "#/definitions/Library",
      "Linkage": "#/definitions/Linkage",
      "List": "#/definitions/List",
      "Location": "#/definitions/Location",
      "Measure": "#/definitions/Measure",
      "MeasureReport": "#/definitions/MeasureReport",
      "Media": "#/definitions/Media",
      "Medication": "#/definitions/Medication",
      "MedicationAdministration": "#/definitions/MedicationAdministration",
      "MedicationDispense": "#/definitions/MedicationDispense",
      "MedicationKnowledge": "#/definitions/MedicationKnowledge",
      "MedicationRequest": "#/definitions/MedicationRequest",
      "MedicationStatement": "#/definitions/MedicationStatement",
      "MedicinalProduct": "#/definitions/MedicinalProduct",
      "MedicinalProductAuthorization": "#/definitions/MedicinalProductAuthorization",
      "MedicinalProductContraindication": "#/definitions/MedicinalProductContraindication",
      "MedicinalProductIndication": "#/definitions/MedicinalProductIndication",
      "MedicinalProductIngredient": "#/definitions/MedicinalProductIngredient",
      "MedicinalProductInteraction": "#/definitions/MedicinalProductInteraction",
      "MedicinalProductManufactured": "#/definitions/MedicinalProductManufactured",
      "MedicinalProductPackaged": "#/definitions/MedicinalProductPackaged",
      "MedicinalProductPharmaceutical": "#/definitions/MedicinalProductPharmaceutical",
      "MedicinalProductUndesirableEffect": "#/definitions/MedicinalProductUndesirableEffect",
      "MessageDefinition": "#/definitions/MessageDefinition",
      "MessageHeader": "#/definitions/MessageHeader",
      "MolecularSequence": "#/definitions/MolecularSequence",
      "NamingSystem": "#/definitions/NamingSystem",
      "NutritionOrder": "#/definitions/NutritionOrder",
      "Observation": "#/definitions/Observation",
      "ObservationDefinition": "#/definitions/ObservationDefinition",
      "OperationDefinition": "#/definitions/OperationDefinition",
      "OperationOutcome": "#/definitions/OperationOutcome",
      "Organization": "#/definitions/Organization",
      "OrganizationAffiliation": "#/definitions/OrganizationAffiliation",
      "Parameters": "#/definitions/Parameters",
      "Patient": "#/definitions/Patient",
      "PaymentNotice": "#/definitions/PaymentNotice",
      "PaymentReconciliation": "#/definitions/PaymentReconciliation",
      "Person": "#/definitions/Person",
      "PlanDefinition": "#/definitions/PlanDefinition",
      "Practitioner": "#/definitions/Practitioner",
      "PractitionerRole": "#/definitions/PractitionerRole",
      "Procedure": "#/definitions/Procedure",
      "Provenance": "#/definitions/Provenance",
      "Questionnaire": "#/definitions/Questionnaire",
      "QuestionnaireResponse": "#/definitions/QuestionnaireResponse",
      "RelatedPerson": "#/definitions/RelatedPerson",
      "RequestGroup": "#/definitions/RequestGroup",
      "ResearchDefinition": "#/definitions/ResearchDefinition",
      "ResearchElementDefinition": "#/definitions/ResearchElementDefinition",
      "ResearchStudy": "#/definitions/ResearchStudy",
      "ResearchSubject": "#/definitions/ResearchSubject",
      "RiskAssessment": "#/definitions/RiskAssessment",
      "RiskEvidenceSynthesis": "#/definitions/RiskEvidenceSynthesis",
      "Schedule": "#/definitions/Schedule",
      "SearchParameter": "#/definitions/SearchParameter",
      "ServiceRequest": "#/definitions/ServiceRequest",
      "Slot": "#/definitions/Slot",
      "Specimen": "#/definitions/Specimen",
      "SpecimenDefinition": "#/definitions/SpecimenDefinition",
      "StructureDefinition": "#/definitions/StructureDefinition",
      "StructureMap": "#/definitions/StructureMap",
      "Subscription": "#/definitions/Subscription",
      "Substance": "#/definitions/Substance",
      "SubstanceNucleicAcid": "#/definitions/SubstanceNucleicAcid",
      "SubstancePolymer": "#/definitions/SubstancePolymer",
      "SubstanceProtein": "#/definitions/SubstanceProtein",
      "SubstanceReferenceInformation": "#/definitions/SubstanceReferenceInformation",
      "SubstanceSourceMaterial": "#/definitions/SubstanceSourceMaterial",
      "SubstanceSpecification": "#/definitions/SubstanceSpecification",
      "SupplyDelivery": "#/definitions/SupplyDelivery",
      "SupplyRequest": "#/definitions/SupplyRequest",
      "Task": "#/definitions/Task",
      "TerminologyCapabilities": "#/definitions/TerminologyCapabilities",
      "TestReport": "#/definitions/TestReport",
      "TestScript": "#/definitions/TestScript",
      "ValueSet": "#/definitions/ValueSet",
      "VerificationResult": "#/definitions/VerificationResult",
      "VisionPrescription": "#/definitions/VisionPrescription"
    };

Test runner

Ready to run.

Testing in
TestOps/sec
With spread
const { SubstancePolymer, ...rest } = sampleObject;

ready
With delete
delete sampleObject.SubstancePolymer;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.