8000 comments · jxmot/github-graphql-snippets@b1741f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1741f0

Browse files
committed
comments
1 parent 061ddc4 commit b1741f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/gh-graphql/assets/js/consolelog.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
// A console.log() replacement, a boolean variable
22
// is used for enabling or disabling its output.
3+
4+
// this variable name uses the underscore in its
5+
// name to avoid potential conflicts with other
6+
// code that might use 'debug' for its own purposes.
37
const _debug = true;
48

9+
// nothing fancy, just the basics...
510
function consolelog(msg) {
611
if (_debug === true) {
712
console.log(msg);

0 commit comments

Comments
 (0)
0