News for hackers. Stuff that matters.
Re:Show HN: Nothing.js – A chainable mock object which alway... by _nalply on Saturday March 31, 2018 @02:08PM (#16724363)
Perhaps use the hint parameter of Symbol.toPrimitive() to fix some gotchas like Nothing + 123 => '123'?

See MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Edit: Won't help, because hint == 'number' is only triggered if used with unary plus or minus. Disregard this comment.

Re:Show HN: Nothing.js – A chainable mock object which alway... by slmgc on Saturday March 31, 2018 @02:10PM (#16724368)
Nope, hint won't help here as it gets `default` instead of `number`.