Skip to content

Instantly share code, notes, and snippets.

@cowboyd cowboyd/dump.js
Created Oct 30, 2019

What would you like to do?
Dump an effection `Fork`
export function dump(fork: any, indent = '') {
return `Fork {
state: ${fork.state}
operation: ${}
${[...fork.children].map(child => dump(child, ' ' + indent)).join("\n")}
}`.split("\n").map(line => `${indent}${line}`).join("\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.