I am attempting to do something very complex.
I have a database that has a self relation (categories that contain a nested category).
The ORM I’m using makes use of these categories as objects:
category = [
{
name: "Lights",
description: "some description",
parentid: "some id"...
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"...
Just realized that my methods were working fine but I was doing something else really dumb. Is there anyway to delete this question to save me from embarrassment?
I think this probably has a simple solution but I've been trying for hours and I can't figure it out. I have an array with objects that have properties:
contactInfo = {
addresses: [
{
addressLine1: "32030 Ortiz Fords"
city: "Port Devon"
country: "Guadeloupe"
addressType: "BUSINESS"...