I have an array of objects:
[{\"value\":\"14\",\"label\":\"7\"},{\"value\":\"14\",\"label\":\"7\"},{\"value\":\"18\",\"label\":\"7\"}]
How I ca
Using ES6 approach:
const objIndex = objs.findIndex(o => o.value === '14' && o.label === '7') if(objIndex > -1) { objs.slice(objIndex, 1) }