I'm not sure if you read through the whole thing, but that's sort of the point of the article. There's crazy stuff you can do in JS, but for the most part there are ways that are good enough to run with certain assumptions. Otherwise you'll vex over these ridiculous corner cases and never get anything done.
I think the main point is not that you should or could breach the contract, but rather to make you aware of the implicit parts of the contract, and how you can make some parts of it explicit as desired. For example, passing undefined or null when an actual value is expected is a breach of contract that does happen in practice, so you might want to defend against that.
0
u/[deleted] Aug 27 '16
[deleted]