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

Method insertBefore

packages/react-stately/src/data/useTreeData.ts:70–70  ·  view source on GitHub ↗

* Inserts items into the list before the item at the given key. * * @param key - The key of the item to insert before. * @param values - The values to insert.

(key: Key, ...values: T[])

Source from the content-addressed store, hash-verified

68 * @param values - The values to insert.
69 */
70 insertBefore(key: Key, ...values: T[]): void;
71
72 /**
73 * Inserts items into the list after the item at the given key.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected