Mike Simon (2018-06-20T18:54:17.000Z)
nixkuroi at gmail.com (2018-06-20T18:57:16.050Z)
True, there are many other ways to make this work. You could even use filter(function(f){f.name==‘abc’;}).length > 0 . The focus of this proposal is that the purpose of .valueOf and .toString are to allow for objects to return a default value without requiring the matching method to know about the contents or property names of any object. Array.prototype.some, and any method mentioned above, require a that a content aware function be passed in to facilitate the match. This proposal mitigates that, and allows Array.prototype.includes to evaluate the object as the object design was intended.