Skip to content

Instantly share code, notes, and snippets.

functionWithoutGuardClause () {
if(condition) {
// logic
return answer
}
throw error
}
----------------
functionWithGuardClause () {
if(not condition) {