Last active
August 29, 2015 14:02
-
-
Save sommestad/3a65d7a8470cf6995274 to your computer and use it in GitHub Desktop.
The Five Whys.
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 Five Whys. | |
* @see http://en.wikipedia.org/wiki/5_Whys | |
* @param {Object} person Whodat? | |
* @param {Object} thing What I'm thinking of doing. | |
*/ | |
function isItTheRightThingToDo(person, thing) { | |
for (var i = 0; i < 5; i++) { | |
if (person.hasActualAnswer(thing)) { | |
return true; | |
} | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment