Skip to content

Instantly share code, notes, and snippets.

@lxe
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save lxe/9a3daad2f59a3ff3ee59 to your computer and use it in GitHub Desktop.

Select an option

Save lxe/9a3daad2f59a3ff3ee59 to your computer and use it in GitHub Desktop.
widgetCollections.map(function (widgetCollection) {
return Object.keys(widgetCollection).reduce(function (widgets, widgetKey) {
if (widget.isFrobbable()) {
widgets.push({
widgetName: widgetKey,
widgetValue: decombabulateWidgetValue({
decombobulator: config.getDecombobilator(),
verbose: false
}, widgetCollection[widgetKey])
});
}
return widgets;
}, []);
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment