Skip to content

Instantly share code, notes, and snippets.

View thephilip's full-sized avatar
🎩
Think like a man of action, act like a man of thought.

Philip Smith thephilip

🎩
Think like a man of action, act like a man of thought.
  • Red Hat
  • Saint Petersburg, Florida
View GitHub Profile
@luijar
luijar / ch01-magic-run.js
Last active June 2, 2024 12:33
Functional Programming in JavaScript Chapter 01 - run function
/*
* Functional Programming in JavaScript
* Chapter 01
* Magical -run- function in support of Listing 1.1
* Author: Luis Atencio
*/
// -run- with two functions
var run2 = function(f, g) {
return function(x) {
return f(g(x));