1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{ user: { id: user_id, /* variables */ name: `${faker.name.firstName()} ${faker.name.lastName()}` // templates }, posts: posts.map((post) => ({ // iterators id: post.id })), addOne: (v) => { // functions let a = 1; return v+a; }, ...misc, // object spread is_active // property shorthand }