MCPcopy
hub / github.com/lawnstarter/react-native-picker-select / handlePlaceholder

Function handlePlaceholder

src/index.js:98–103  ·  view source on GitHub ↗
({ placeholder })

Source from the content-addressed store, hash-verified

96 };
97
98 static handlePlaceholder({ placeholder }) {
99 if (isEqual(placeholder, {})) {
100 return [];
101 }
102 return [placeholder];
103 }
104
105 static getSelectedItem({ items, key, value }) {
106 let idx = items.findIndex((item) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected