export function equal()

in packages/sdk/src/Value.ts [72:83]


  export function equal(value1: Value, value2: Value): boolean {
    if (value1 === value2) return true;
    const type = getType(value1);
    if (getType(value2) !== type) return false;
    if (type === 'Struct') {
      return structsEqual(value1 as Struct, value2 as Struct);
    }
    if (type === 'List') {
      return listsEqual(value1 as List, value2 as List);
    }
    return false;
  }