example.babelon
326 Bytes
{
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
}