Skip to content

OpenClubDev/logandarrow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logandarrow Travis

Log inline without breaking things

###How do I use it?

log and arrow acts as a super-simple log in front of an output - mostly due to our frustrating when debugging arrow functions returning an object.

var la = require('logandarrow');

var someArrowFunction = someVariable => ({
  stuff,
  returned,
  as,
  a
});

var someArrowFunctionWithLogAndArrow = someVariable => la()({
  stuff,
  returned,
  as,
  a
})

var someArrowFunctionWithLogAndArrowUsingAFunction = someVariable => la(console.trace)({
  stuff,
  returned,
  as,
  a
})


Releases

No releases published

Packages

No packages published