Last active
October 23, 2017 06:31
-
-
Save jessecogollo/a83423bba849c5f2593799aa381c164b to your computer and use it in GitHub Desktop.
deprecate
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 { | |
deprecate | |
} = require('util'); | |
const myCoolFn = deprecate((name) => { | |
return `${name} is very cool !!!`; | |
}, 'myCoolFn is deprecated !!! =('); | |
module.exports = { | |
myCoolFn | |
}; |
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
'use strict'; | |
const { | |
myCoolFn | |
} = require('./modules/util'); | |
myCoolFn('jesse'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment