MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isSamePosition

Function isSamePosition

packages/react-aria/src/tokenfield/useTokenField.ts:864–866  ·  view source on GitHub ↗
(a: Position, b: Position)

Source from the content-addressed store, hash-verified

862}
863
864function isSamePosition(a: Position, b: Position): boolean {
865 return a.index === b.index && a.offset === b.offset;
866}
867
868// Parse and validate segments from clipboard/drag data. Returns null if the data is not valid
869// JSON or does not match the expected shape, so malformed or untrusted data is ignored rather

Callers 2

useTokenFieldFunction · 0.85
moveSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected