Created
April 24, 2020 20:51
-
-
Save kenanhancer/844f96f5325ab4715ef4ccc5126009b1 to your computer and use it in GitHub Desktop.
nut-ioc Basic Constructor
This file contains hidden or 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
module.exports.Service = ({ helper }) => | |
({ | |
sayHello: ({ firstName, lastName }) => { | |
const fullName = helper.getFullName({ firstName, lastName }); | |
return `Hello ${fullName}`; | |
}, | |
sayGoodbye: ({ firstName, lastName }) => { | |
const fullName = helper.getFullName({ firstName, lastName }); | |
return `Goodbye, ${fullName}`; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment