The path to the JSON file.
The ID to search for.
The found object or undefined if no match is found.
const filePath = "data.json";
const id = 123;
const result = await findObject(filePath, id);
console.log(result);
Generated using TypeDoc
Finds an object with a matching ID in a JSON file.