[Solved] which function to use in order to remove an object from an array


You apparently want to filter out certain properties from the single element of your array, which is an object, containing subobjects, when the address property of the subobject matches one or more string values.

Extract the first element of the array, then loop over its properties with a for...in loop. If the subproperty matches, delete the property with delete.

function filterproc(array) {
  var o = array[0];

  for (var k in o) 
    if (o[k].address === "....")
      delete o[k];
}

To match against multiple possibilities, consider using indexOf, which checks if an array contains some value:

if (['63784hgj', ...].indexOf(o[k]) !== -1) ...

solved which function to use in order to remove an object from an array