Skip to content

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): boolean

Parameters:

ParameterTypeDescription
otherValueThe value to compare with.

Returns: boolean — Whether other is a primitive value wrapping a loosely equal primitive.