Last active
January 1, 2016 18:59
-
-
Save chenba/8187642 to your computer and use it in GitHub Desktop.
Uglifying JS because it's possible
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 tastywaffles(source, data) { | |
var call_me_maybe = function(things) { | |
$.each(things, function(_, thingy) { consume(source, thingy); }); | |
}; | |
data.waffle.switches && call_me_maybe(data.waffle.switches); | |
data.waffle.flags && call_me_maybe(data.waffle.flags); | |
data.waffle.samples && call_me_maybe(data.waffle.samples); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment