filterPropEntries()
Gets the key/value pairs for the properties the specified object using Object.getOwnPropertyNames()
and filters them using a callback function.
obj
. This function will be passed (1) the property name, (2) the property value and (3) a reference to obj
. For each property the return value will be coerced to a boolean and will be used to see if the property key/value pair should be returned.false
tester()
. If false
-ish the tester()
callback should return a true
-ish value for any properties should be kept. If true
-ish the tester()
callback should return a false
-ish value for any properties that should be kept.obj
. Each item in the array will be an array where the first value in the subarray is the property name and the second item in the subarray is the value.This function directly requires the following function which is included automatically:
filterPropNames()
Object.getOwnPropertyNames()
and filters the property names using a callback function.
This function is directly required by the following function:
filterPropNames()
Object.getOwnPropertyNames()
and filters the property names using a callback function.