Skip to content

ListValue.compare method

ListValue › compare

Unofficial

Compares this list to another element-wise using the provided comparator.

Signature:

compare(other: ListValue, comparator: (a: Value, b: Value) => boolean): boolean

Parameters:

Parameter Type Description
other ListValue The list to compare to.
comparator (a: Value, b: Value) => boolean Returns whether two elements are considered equal.

Returns: booleanWhether the lists are equal.