EJSON.equals

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 when keyOrderSensitive is false. The default is false.

doc_Meteor
2016-05-29 17:20:25
Comments
Leave a Comment

Please login to continue.