Object.isEqual

doodad-js Admin doodadjs at gmail.com
Mon May 1 22:19:56 UTC 2017


Maybe operator overloading?

 

[Symbol.IsEqual](obj) {

                return obj.a  === this.a;

}

 

[Symbol.IsGreater](obj) {

                return obj.a  > this.a;

}

 

...

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170501/b5214ee5/attachment-0001.html>


More information about the es-discuss mailing list