UNPKG

poe-api-manager

Version:
8 lines (7 loc) 444 B
/** * Filters properties of objects in an array based on the specified properties. * @param {Record<string, any> []} data The array of objects to filter. * @param {string} requestedProperties The array of property names to include in the result. * @returns {object[]} An array of objects with only the specified properties. */ export default function filterProperties(data: Record<string, any>[], requestedProperties: string[]): object[];