Skip to main content

map

Transforms the story attributes:

map(stories, (story) => ({
...story,
// Add an initial action for each story
act: (actor, config) => story.act(actor.do(login()), config),
}));

You can modify any story property:

map(stories, (story) => ({
...story,
// Fine-tune the external environment
arrange: (externals, config) =>
withDarkTheme(story.arrange(externals, config)),
}));