Skip to content

JonZa/foo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

foo(bar,fly);

Marginally useful console.log shorthand.

Ad-hoc logging:

foo('bar');
// [13:03:20] bar
var bar = 'fly';
foo(bar);
// [13:03:20] fly
var bar = ['foo','bar','fly'];
foo(bar);
// [13:03:20] object:
0 foo
1 bar
2 fly
var bar = { foo: 'foo', bar: 'bar', fly: 'fly'};
foo(bar);
// [13:03:20] object:
bar bar
fly fly
foo foo

Optional coding standard for enabling emergency debug mode:

function whatever() {
  foo('whatever',1);
  ...
}
// (no log)
var paranoid = true;
function whatever() {
  foo('whatever',1);
  ...
}
// [13:03:20] whatever

About

Marginally useful console.log shorthand.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors