Function that receivs an object and creates an array out of that object properties. The properties in the end result array are chosen based on the checks passed. For instance, if we passed in an object of obj = {a : 1, b:2, c:3}, and introduced checks to only include properties with the keys a and b, the end result would look like this: [{a:1}, {b:2}]
Function that receivs an object and creates an array out of that object properties. The properties in the end result array are chosen based on the checks passed. For instance, if we passed in an object of
obj = {a : 1, b:2, c:3}
, and introduced checks to only include properties with the keysa
andb
, the end result would look like this: [{a:1}, {b:2}]