Checking if an object is an Effect in Typescript
Is this the proper way to detect if something is an Effect? Or is there a built-in utility I'm missing:
const isEffect = (x: unknown) => typeof x === 'object' && Symbol.for("effect/Effect") in x;
isEffect(Effect.succeed(null)); // true