(obj, compareTo, eqlFn)
| 185 | } |
| 186 | |
| 187 | function 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 |
no outgoing calls
no test coverage detected