API Reference > ecschema-Metadata > Metadata > SchemaItem > equalByKey equalByKey MethodStatic Indicates if the two SchemaItem objects are equal by comparing their respective SchemaItem.key properties. equalByKey(thisSchemaItem: SchemaItem, thatSchemaItemOrKey?: SchemaItem | SchemaItemKey): boolean Parameter Type Description thisSchemaItem SchemaItem The first SchemaItem. thatSchemaItemOrKey SchemaItem | SchemaItemKey The second SchemaItem or SchemaItemKey. Returns - boolean Defined in core/ecschema-metadata/src/Metadata/SchemaItem.ts Line 133 Last Updated: 11 June, 2024