Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. var debug = true;
  2.  
  3. function parseJSON(json) {
  4. debug && console.log('parsing json');
  5. if(typeof json == 'string') {
  6. json = JSON.parse(json);
  7. }
  8.  
  9. debug && console.log('got json', json);
  10. }
Add Comment
Please, Sign In to add comment