{
id: 1,
title: "title",
budget: 100
}
{
id,
name,
price
}
{
id: object.id,
name: object.title,
price: object.budget
}
/**
* @param {{ id : number, title: string, budget: number }} entry
* @return {{ id: number, name: string, price: number }}
*/
const transform = (entry) => ({
id: entry.id,
name: entry.title,
price: entry.budget
});