Since the "=" function can compare ClojureScript collections, one of the closest solutions should be:
(= (js->clj (js-obj "a" 1)) (js->clj (js-obj "a" 1))) ;; => true
What is ugly and doesn't work with objects like:
(= (js->clj (js/THREE.Vector3. 10 20 30)) (js->clj (js/THREE.Vector3. 10 20 30))) ;; => false
The most reliable solution is the goog.equals method from Google Closing Library .
(ns my.name-space
(:import goog.object)
(:require [cljsjs.three]))
(.equals goog.object (js/THREE.Vector3. 10 20 30) (js/THREE.Vector3. 10 20 30))) ;; => true
Google Closure Library JavaScript.