adding example code for objects and array.filter