MCPcopy Index your code
hub / github.com/parse-community/parse-server / equalObjectsGeneric

Function equalObjectsGeneric

src/LiveQuery/QueryTools.js:187–198  ·  view source on GitHub ↗
(obj, compareTo, eqlFn)

Source from the content-addressed store, hash-verified

185}
186
187function equalObjectsGeneric(obj, compareTo, eqlFn) {
188 if (Array.isArray(obj)) {
189 for (var i = 0; i < obj.length; i++) {
190 if (eqlFn(obj[i], compareTo)) {
191 return true;
192 }
193 }
194 return false;
195 }
196
197 return eqlFn(obj, compareTo);
198}
199
200/**
201 * Determines whether an object matches a single key's constraints

Callers 1

matchesKeyConstraintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected