To see a working version of the code check out https://codesandbox.io/s/j497w26383 and open the console.
This file demonstrates a very basic List as an applicative functor for the purpose of demonstrating a simple list comprehension.
The idea for this was taken from: https://egghead.io/lessons/javascript-list-comprehensions-with-applicative-functors by https://twitter.com/drboolean