Anywhere
EJSON.equals(a, b, [options])
import { EJSON } from 'meteor/ejson'
Source Return true if a
and b
are equal to each other. Return false otherwise. Uses the equals
method on a
if present, otherwise performs a deep comparison.
Arguments
- a EJSON-able Object
- b EJSON-able Object
Options
- keyOrderSensitive Boolean
-
Compare in key sensitive order, if supported by the JavaScript implementation. For example,
{a: 1, b: 2}
is equal to{b: 2, a: 1}
only whenkeyOrderSensitive
isfalse
. The default isfalse
.
Please login to continue.