PrimitiveValue.looseEquals method
PrimitiveValue › looseEquals
Loosely compares this value with a value of any type, as Obsidian does: any other primitive value whose wrapped primitive is LOOSELY equal to this one. The== is Obsidian's own and is the whole point of the override - it is what makes BooleanValue(true) loosely equal NumberValue(1) and StringValue('1').Signature:
looseEquals(other: Value): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| other | Value | The value to compare with. |
Returns: boolean — Whether other is a primitive value wrapping a loosely equal primitive.