Effect CommunityEC
Effect Community3y ago
2 replies
Sadra

Alternative Approach for Logging in JavaScript without Using Effect.unit

I'm looking for an alternative approach for logging, similar to the code provided:

Effect.tap(x => {
  console.log(x.map(e => ({title: e.title.query, value: e.value})));
  return Effect.unit;
})


Is there a way to achieve this without using Effect.unit?
Was this page helpful?