Micro1's candidate review surface receives an array of profile objects and needs to display only profiles matching a selected property. Write a function that returns every object whose specified property equals a target value.
The function must preserve the input order, include duplicate matches, and exclude objects that do not contain the requested property. Do not mutate the original array or its objects.
Implement filter_objects(items, key, value).
items is a list of dictionaries.key is a string naming the property to inspect.value is a JSON-compatible value, such as a string, number, boolean, or null.key exists and items[i][key] == value.def filter_objects(items, key, value):