Raganwald has a few books and many articles about functional JS and combinatorial logic (in JS), go check these out if you're curious what can it be useful for.