News for hackers. Stuff that matters.
Re:Show HN: Nothing.js – A chainable mock object which alway... by ollerac on Saturday March 31, 2018 @07:17PM (#16725680)
If you use Babel 7, you can install a plugin [0] to get the optional chaining syntax [1] that's currently a TC39 Stage 1 proposal!

[0] https://www.npmjs.com/package/babel-plugin-transform-optiona...

[1] https://github.com/tc39/proposal-optional-chaining

Re:Show HN: Nothing.js – A chainable mock object which alway... by samhunta on Saturday March 31, 2018 @07:34PM (#16725760)
Yes this is a much better alternative in my opinion.
Re:Show HN: Nothing.js – A chainable mock object which alway... by sarreph on Sunday April 01, 2018 @01:22AM (#16726868)
Oh boy, this is just making me miss Swift anymore...