Created
June 7, 2016 07:26
-
-
Save razodactyl/8cb5ff26437344a8252a2c406b79c263 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the array of functions | |
const fns = [ | |
function () { | |
console.log("ONE") | |
}, | |
function () { | |
console.log("TWO") | |
}, | |
function () { | |
console.log("THREE") | |
} | |
] | |
fns.forEach(Function.prototype.call, Function.prototype.call) | |
// Expected console output should be | |
// ONE | |
// TWO | |
// THREE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment