* Checks if `x` is a construct. * * Use this method instead of `instanceof` to properly detect `Construct` * instances, even when the construct library is symlinked. * * Explanation: in JavaScript, multiple copies of the `constructs` library on * disk are seen as independent, compl
(x: any)
| 552 | * @param x Any object |
| 553 | */ |
| 554 | public static isConstruct(x: any): x is Construct { |
| 555 | return x && typeof x === 'object' && x[CONSTRUCT_SYM]; |
| 556 | } |
| 557 | |
| 558 | /** |
| 559 | * The tree node. |