I am working with 2 JavaScript arrays
First Array
var columns=[{name: 'id', default: true}, {name: 'type', default: true},{name: 'typeName', default: true}, {name: 'client', default: false}];
Second Array
var unSelect=["id", "type", "typeName"]
Now I need to create a new array, Third Array
, which contains only elements that do not match the name
property in both previous arrays.
In this scenario:
var thirdArray=[{name: 'client', default: false}]
I attempted to use splice method but encountered issues with index matching.