Created
February 28, 2019 00:29
-
-
Save dewey92/884a150f02dd61238349e802f9852953 to your computer and use it in GitHub Desktop.
Partial App bind - JS
This file contains hidden or 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
| const fillNames = (firstN, middleN, lastN) => | |
| firstN + middleN + lastN | |
| const a = fillNames.bind(null, 'Jihad'); | |
| const b = a(' Dzikri', ' Waspada') | |
| b === 'Jihad Dzikri Waspada' // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment