Last active
April 13, 2016 20:19
-
-
Save DanielMSchmidt/c4e116c1eeffdce0509b7dd0390f6873 to your computer and use it in GitHub Desktop.
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
function search(needle, haystack, limit) { | |
//... | |
} | |
// Some modules later | |
// Doh' wrong | |
// search('3.1415926', 1, '.'); | |
// Damn it, which order was it again? | |
// search('3.1415926', '.' , 1); | |
search('.', '3.1415926', 1); |
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
function search({needle, haystack, limit}) { | |
//... | |
} | |
// Some modules later | |
search({needle: '.', haystack: '3.1415926', limit: 1}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment