Last active
October 26, 2017 20:21
-
-
Save herber/c8df78dd00ea4fb2d1e7bfad89a3dff2 to your computer and use it in GitHub Desktop.
Simple logger in js
This file contains 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
const l => (type) { | |
return (text) => { | |
console.log(`${ type } - ${ text }`); | |
}; | |
} | |
module.exports = l; |
This file contains 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
const l = require('./log')('usage file'); | |
l('Hello World'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment