Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

luijar/functional-programming-js

Code Samples Functional Programming in JavaScript, Manning 2016

luijar/functional-programming-js.json
{
"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"
}

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

Terminal window
$ npm install

to 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.

Once QUnit is installed, you can run each test with the QUnit CLI by specifying the chapter number.

Terminal window
$ 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:

Terminal window
$ npm test

To run a chapter test:

Terminal window
$ jest ch[01-08]

To run tests in watch mode:

Terminal window
$ jest --watchAll

And for code coverage:

Terminal window
$ npm run cover