[Functional Programming] Using naive JS, FP approach with Arrow or State Monad

NoSuchKey