i have an array of objects that gives out information in the below shown format.
personArray = [{
name: 'Person1',
number: "(770) 556-2282",
membership: 'standard'
},
{
name: 'Person1',
number: "(770) 556-2282",
membership: 'standard'
},
{
name: 'Person1',
number: "(770) 556-2282",
membership: 'standard'
},
{
name: 'Person1',
number: "(770) 556-2282",
membership: 'standard'
},
]
How can i Get the output to display the object as
and so on. So basically only the phone number is edited in a sense to hide anything before the -
{
name:'Person1',
number:"2282",
membership:"standard"
}