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

Function arrayToLab

packages/react-stately/test/color/Color.test.tsx:257–260  ·  view source on GitHub ↗
(acc, item, index)

Source from the content-addressed store, hash-verified

255 };
256 let positionMap = {0: 'L', 1: 'A', 2: 'B'};
257 let arrayToLab = (acc, item, index) => {
258 acc[positionMap[index]] = item;
259 return acc;
260 };
261
262 it('can perform round trips', () => {
263 // @ts-ignore

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected