Here is my sample object:
name: 'Jango',
age: 23,
sex: 'male',
phone_0: '0000000',
phone_1: '1111111',
phone_2: '2222222'
on the above object, I want to look for is there any field exist with 'phone_', if exist, I want them to be plucked to another array or object.
How to do this in Javascript?
Note: I am inside a react component.