Skip to content

Instantly share code, notes, and snippets.

@alejandrolechuga
Created January 29, 2019 18:21
Show Gist options
  • Save alejandrolechuga/c7ba9906f9133b797c472d46cdc5e907 to your computer and use it in GitHub Desktop.
Save alejandrolechuga/c7ba9906f9133b797c472d46cdc5e907 to your computer and use it in GitHub Desktop.
Quickdraw handy
function printModel(element) {
var model =qd.getModel(element);
Object.keys(model).forEach((key) => {
if (typeof model[key] === 'function') {
console.log(key, model[key]());
} else {
console.log(key, model[key]);
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment