My array looks like this:
$scope.myArray = [{
columnName: "processed1",
dataType: "char"
}, {
columnName: "processed2",
dataType: "char"
}, {
columnName: "processed3",
dataType: "char"
}];
I'm trying to locate the index
of an object
where the property value matches "processed2"
Any suggestions on how I can achieve this? I attempted using the array.indexOf()
method, but it returned -1