identical?

function/macrosince v0.0-927 clojure.core/identical?Edit
(identical? x y)

Details:

Returns true if x and y are the same object, false otherwise.


See Also:


Source docstring:
Tests if 2 arguments are the same object
Function code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^boolean identical?
  [x y]
  (cljs.core/identical? x y))

Macro code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro identical? [a b]
  (bool-expr (core/list 'js* "(~{} === ~{})" a b)))