{"id":13352429,"url":"https://github.com/getify/functional-light-js","last_synced_at":"2025-05-13T15:09:49.324Z","repository":{"id":37686612,"uuid":"65866559","full_name":"getify/Functional-Light-JS","owner":"getify","description":"Pragmatic, balanced FP in JavaScript. @FLJSBook on twitter.","archived":false,"fork":false,"pushed_at":"2023-12-26T15:46:02.000Z","size":31724,"stargazers_count":16750,"open_issues_count":25,"forks_count":1950,"subscribers_count":460,"default_branch":"master","last_synced_at":"2025-04-28T00:55:56.503Z","etag":null,"topics":["book","education","functional-programming","javascript","training-materials","training-providers"],"latest_commit_sha":null,"homepage":"http://FLJSBook.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["getify"],"patreon":"getify","custom":["https://www.paypal.com/paypalme2/getify","https://www.blockchain.com/btc/address/32R5dVrqirdcbiyvUw85y7YbPFZTd7YpnH"]}},"created_at":"2016-08-17T01:40:50.000Z","updated_at":"2025-04-27T20:31:24.000Z","dependencies_parsed_at":"2022-08-08T21:15:52.858Z","dependency_job_id":"dc6fec07-ef25-4b33-9528-4f66b9fa265b","html_url":"https://github.com/getify/Functional-Light-JS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FFunctional-Light-JS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FFunctional-Light-JS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FFunctional-Light-JS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FFunctional-Light-JS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getify","download_url":"https://codeload.github.com/getify/Functional-Light-JS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969243,"owners_count":21992262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["book","education","functional-programming","javascript","training-materials","training-providers"],"created_at":"2024-07-29T21:01:20.922Z","updated_at":"2025-05-13T15:09:44.300Z","avatar_url":"https://github.com/getify.png","language":"JavaScript","readme":"# Functional-Light JavaScript\n\n[![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC%20BY--NC--ND%204.0-blue.svg)](http://creativecommons.org/licenses/by-nc-nd/4.0/)\n\n\u003ca href=\"http://fljsbook.com\"\u003e\u003cimg src=\"manuscript/images/marketing/front-cover-small.png\" width=\"25%\" align=\"right\" hspace=\"20\" vspace=\"20\" title=\"Functional-Light JavaScript\" alt=\"Book Cover\"\u003e\u003c/a\u003e\n\nThis book is a balanced, pragmatic look at FP in JavaScript. The first edition is now complete. Read here online **for free**, or:\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://fljsbook.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Buy-Leanpub-yellow.svg\" title=\"Buy on Leanpub\" alt=\"Buy on Leanpub\"\u003e\u003c/a\u003e \u003ca href=\"http://manning.fljsbook.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Buy-Manning-yellow.svg\" title=\"Buy on Manning\" alt=\"Buy on Manning\"\u003e\u003c/a\u003e \u003ca href=\"http://amazon.fljsbook.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Buy-Amazon-yellow.svg\" title=\"Buy on Amazon\" alt=\"Buy on Amazon\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\"Functional-Light JavaScript\" explores the core principles of functional programming (FP) as they are applied to JavaScript. But what makes this book different is that we approach these principles without drowning in all the heavy terminology. We look at a subset of FP foundational concepts that I call \"Functional-Light Programming\" (FLP) and apply it to JavaScript.\n\n**Note:** Despite the word \"Light\" in the title, I do not consider or recommend this book as a \"beginner\", \"easy\", or \"intro\" book on the topic. This book is rigorous and full of gritty detail; it expects a solid foundation of JS knowledge before diving in. \"Light\" means limited in scope; instead of being more broad, this book goes much deeper into each topic than you typically find in other FP-JavaScript books.\n\nLet's face it: unless you're already a member of the FP cool kids club (I'm not!), a statement like, \"a monad is just a monoid in the category of endofunctors\", just doesn't mean anything useful to us.\n\nThat's not to say the terms are meaning*less* or that FPrs are bad for using them. Once you graduate from Functional-Light, you'll maybe/hopefully want to study FP more formally, and you'll certainly have plenty of exposure to what they mean and why.\n\nBut I want you to be able to apply some of the fundamentals of FP to your JavaScript *now*, because I believe it will help you write better, more *reason*able code.\n\n**To read more about the motivations and perspective behind this book, check out the [Preface](manuscript/preface.md).**\n\n## Book\n\n[Table of Contents](manuscript/README.md/#table-of-contents)\n\n* [Foreword](manuscript/foreword.md/#foreword) (by [Brian Lonsdorf, aka \"Prof Frisby\"](https://twitter.com/DrBoolean))\n* [Preface](manuscript/preface.md/#preface)\n* [Chapter 1: Why Functional Programming?](manuscript/ch1.md/#chapter-1-why-functional-programming)\n* [Chapter 2: The Nature Of Functions](manuscript/ch2.md/#chapter-2-the-nature-of-functions)\n* [Chapter 3: Managing Function Inputs](manuscript/ch3.md/#chapter-3-managing-function-inputs)\n* [Chapter 4: Composing Functions](manuscript/ch4.md/#chapter-4-composing-functions)\n* [Chapter 5: Reducing Side Effects](manuscript/ch5.md/#chapter-5-reducing-side-effects)\n* [Chapter 6: Value Immutability](manuscript/ch6.md/#chapter-6-value-immutability)\n* [Chapter 7: Closure vs Object](manuscript/ch7.md/#chapter-7-closure-vs-object)\n* [Chapter 8: Recursion](manuscript/ch8.md/#chapter-8-recursion)\n* [Chapter 9: List Operations](manuscript/ch9.md/#chapter-9-list-operations)\n* [Chapter 10: Functional Async](manuscript/ch10.md/#chapter-10-functional-async)\n* [Chapter 11: Putting It All Together](manuscript/ch11.md/#chapter-11-putting-it-all-together)\n* [Appendix A: Transducing](manuscript/apA.md/#appendix-a-transducing)\n* [Appendix B: The Humble Monad](manuscript/apB.md/#appendix-b-the-humble-monad)\n* [Appendix C: FP Libraries](manuscript/apC.md/#appendix-c-fp-libraries)\n\n## Publishing\n\nThis book has been published and is now available for purchase (in both ebook and print formats) from these sources:\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://fljsbook.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Buy-Leanpub-yellow.svg\" title=\"Buy on Leanpub\" alt=\"Buy on Leanpub\"\u003e\u003c/a\u003e \u003ca href=\"http://manning.fljsbook.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Buy-Manning-yellow.svg\" title=\"Buy on Manning\" alt=\"Buy on Manning\"\u003e\u003c/a\u003e \u003ca href=\"http://amazon.fljsbook.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Buy-Amazon-yellow.svg\" title=\"Buy on Amazon\" alt=\"Buy on Amazon\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nIf you'd like additionally to contribute financially towards the effort (or any of my other OSS work) aside from purchasing the book, I do have a [patreon](https://www.patreon.com/getify) that I would always appreciate your generosity towards.\n\n\u003ca href=\"https://www.patreon.com/getify\"\u003e[![patreon.png](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/getify)\u003c/a\u003e\n\n## In-person Training\n\nThe content for this book derives heavily from a training workshop I teach professionally (in both public and private-corporate workshop format) of the same name.\n\nIf you like this content and would like to contact me regarding conducting training on this, or other various JS/HTML5/Node.js topics, please reach out to me through email: getify @ gmail\n\n## Online Video Training\n\nI also have several JS training courses available in on-demand video format. I [teach courses](https://FrontendMasters.com/teachers/kyle-simpson) through [Frontend Masters](https://FrontendMasters.com), like my [Functional-Light JavaScript v2](https://frontendmasters.com/courses/functional-javascript-v2/) workshop. Some of my courses are also available on [PluralSight](https://www.pluralsight.com/search?q=kyle%20simpson\u0026categories=all).\n\n## Contributions\n\nAny contributions you make to this effort **are of course greatly appreciated**.\n\nBut **PLEASE** read the [Contributions Guidelines](CONTRIBUTING.md) carefully before submitting a PR.\n\n## License \u0026 Copyright\n\nThe materials herein are all (c) 2016-2018 Kyle Simpson.\n\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-nd/4.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png\" /\u003e\u003c/a\u003e\u003cbr /\u003eThis work is licensed under a \u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-nd/4.0/\"\u003eCreative Commons Attribution-NonCommercial-NoDerivs 4.0 Unported License\u003c/a\u003e.\n","funding_links":["https://github.com/sponsors/getify","https://patreon.com/getify","https://www.paypal.com/paypalme2/getify","https://www.blockchain.com/btc/address/32R5dVrqirdcbiyvUw85y7YbPFZTd7YpnH","https://www.patreon.com/getify"],"categories":["Javascript","FP","Books","Resources"],"sub_categories":["[Elm](http://elm-lang.org)","Books"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetify%2Ffunctional-light-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetify%2Ffunctional-light-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetify%2Ffunctional-light-js/lists"}