Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

filtering array

  1. L

    JavaScript Recursively Delete objects from an array of nested objects

    Anyone know how to recursively find and delete an object from an array structured like this with infinite nested objects with the same structure? [ { id: 1, nest: [ { id: 2, nest: [{id: 3, nest: [{..continues..}]}], }, { id: 4, nest...
  2. T

    JavaScript Filter out element in a deeply nested array

    Context: I have a form where a user enters in data. I want to remove all object elements in the phone array that contain an empty string in the phoneNumber property. Here is example data: const data = [ { contactName: "Contact 1 Name", phone: [ {phoneName: "Some Name"...
Back
Top Bottom