Created
January 29, 2019 18:21
-
-
Save alejandrolechuga/c7ba9906f9133b797c472d46cdc5e907 to your computer and use it in GitHub Desktop.
Quickdraw handy
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 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