slmgc/Nothing
View on GitHub ↗ ★ 366 JavaScript
A chainable, callable mock object which always returns itself
3 mentions on Hacker News by 2 people: 1 story, 2 comments · first 2018-03-31 · latest 2018-04-25
20082026
-
This would also solve the case of objects that pretend to have every property as a function, e.g.: https://github.com/slmgc/Nothing
comment by twiss · 2018-04-25 · in JavaScript Symbol.thenable Proposal -
Added a FAQ section: https://github.com/slmgc/Nothing#faq
comment by slmgc · 2018-04-02 · in Show HN: Nothing.js – A chainable mock object which always returns itself -
▲ 89
Show HN: Nothing.js – A chainable mock object which always returns itselfstory by slmgc · 2018-03-31 · 40 comments