Creates a new object or a new array based on the specified object array. This new array will only have the values which pass the test function.This function is valid in v2.23.0. This function has been downloaded 5 times.
arrOrObjand whose return value for each call will be coerced to a boolean and used to determine if the value will be kept in the resulting array or object returned by
filter(). Only return values that are
true-ish will be kept. The first argument passed will be the value that is being tested. The second argument passed will be the index or key of the value that is being tested. The third argument passed will be
thiskeyword will reference
null, the global object will be used. If given as a primitive, the object version of the value will be used. This object will be used as
arrOrObjis an array (or an array-like object) then an array with the filtered values will be returned. Otherwise an object with the filtered values will be returned.
This function directly requires the following functions which are included automatically:
This function is directly required by the following functions: