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

Function isSamePosition

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

Source from the content-addressed store, hash-verified

864}
865
866function isSamePosition(a: Position, b: Position): boolean {
867 return a.index === b.index && a.offset === b.offset;
868}
869
870// Parse and validate segments from clipboard/drag data. Returns null if the data is not valid
871// 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