luijar/functional-programming-js
Code Samples Functional Programming in JavaScript, Manning 2016
{ "createdAt": "2015-05-12T18:42:28Z", "defaultBranch": "master", "description": "Code Samples Functional Programming in JavaScript, Manning 2016", "fullName": "luijar/functional-programming-js", "homepage": "", "language": "JavaScript", "name": "functional-programming-js", "pushedAt": "2018-12-09T20:35:59Z", "stargazersCount": 483, "topics": [], "updatedAt": "2025-11-17T06:49:24Z", "url": "https://github.com/luijar/functional-programming-js"}Functional JavaScript Programming
Section titled “Functional JavaScript Programming”By Luis Atencio
Section titled “By Luis Atencio”Since this code uses ES6 artifacts, any code meant to run on the browser must be transpiled with either:
- Babel
- Traceur
For Node.js users. This code requires:
node —version > 6.3.1
Please begin the project with
$ npm installto load all of the required functional libraries.
In this repo you will find:
- All code samples (as runnable unit tests) of code used in chapters
- JS targeted for browser
- Functional data types like Optional, Either, Maybe, etc.
- Access to some JavaScript functional libraries like lodash.js, rxjs, etc.
Running the tests
Section titled “Running the tests”Once QUnit is installed, you can run each test with the QUnit CLI by specifying the chapter number.
$ npm run ch[01-08]Additionally, you may also run unit tests using the Jest test runner. Disclaimer: This is not part of the book, but an extra feature courtesy of the JS community :-)
To run all tests:
$ npm testTo run a chapter test:
$ jest ch[01-08]To run tests in watch mode:
$ jest --watchAllAnd for code coverage:
$ npm run cover