Javascript – Problem on TaskEither sequenceArray function for processing different types of return type
I am working on functional programming using fp-ts library. Here is my code and my problem: import * as TE from 'fp-ts/TaskEither'; import { pipe } from 'fp-ts/lib/function'; function getName(): TE.TaskEither<Error, String> { return TE.right('John Doe'); } function getAge(): TE.TaskEither<Error,…