playcanvas / observer

JavaScript implementation of the Observer pattern
https://api.playcanvas.com/modules/Observer
MIT License
14 stars 5 forks source link

Move array equals implementation #21

Closed slimbuck closed 1 year ago

slimbuck commented 1 year ago

The observer implementation assumed that Array prototype implemented a function equals to compare two arrays. This required all users of observer to monkey patch said function.

This PR moves array equals into observer instead.

Also bump package to v1.4.0.