Last active
February 13, 2017 01:45
-
-
Save casprwang/7bdd44d2e5846b019588ec89ceadc367 to your computer and use it in GitHub Desktop.
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
// export default l => () => console.log(12) | |
// export default l => (console.log('12')) | |
// export default l => ({ ll: () => 12}) | |
// const l = () => 2 | |
// // console.log(l()) | |
// export { l } | |
// export default d => ({ date: () => new Date(+d + 1e12) }); | |
const x = (d) => ({ | |
date: () => new Date(+d + 1e12), | |
logger: () => 'haha' | |
}) | |
const gs = new x(new Date(Date.UTC(2015, 8, 14, 23, 59, 59))) | |
// const expectedDate = new Date(Date.UTC(2047, 4, 24, 1, 46, 39)); | |
// const gs = new d() | |
console.log(gs.date()) | |
console.log(gs.logger()) | |
console.log(new Date(Date.UTC(2015, 8, 14, 23, 59, 59))) | |
// 2047-05-24T01:46:39.000Z | |
// haha | |
// 2015-09-14T23:59:59.000Z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment