It looks like you're new here. If you want to get involved, click one of these buttons!
And we also have an object "bar":<<set $foo to { favouriteGame : "Asteroids" }>>
Is there a function or method (like .equals()?) that I can use that compares two objects and returns true/false based on whether or not their contents are equal?<<set $bar to { favouriteGame : "Asteroids" }>>
Comments
If you actually need such a feature, then you could download the production build of Underscore—it's the "Production Version (x.x.x)" link under the downloads section.
Paste the content of that into your Story JavaScript, with one minor change required to make it work. At the very end of the library, just before the source map comment at the end of a very long line, you'll find a call() method invocation which you need to modify.
FIND: REPLACE WITH:
Once done, you should be able to use any of the Underscore library methods. The one you're looking for is named isEqual. For example: