(parent: object, child: object)
| 45 | |
| 46 | // Return if |parent| equals |child| or |parent| is a parent of |child|. |
| 47 | export function matchClass(parent: object, child: object) { |
| 48 | return parent == child || Object.prototype.isPrototypeOf.call(parent, child); |
| 49 | } |
no outgoing calls
no test coverage detected