(
labelOptionsMap: Map<React.ReactNode, OptionType>,
option: OptionType,
key: string | number,
)
| 25 | const labelOptions = new Map<React.ReactNode, OptionType>(); |
| 26 | |
| 27 | const setLabelOptions = ( |
| 28 | labelOptionsMap: Map<React.ReactNode, OptionType>, |
| 29 | option: OptionType, |
| 30 | key: string | number, |
| 31 | ) => { |
| 32 | if (key && typeof key === 'string') { |
| 33 | labelOptionsMap.set(option[key], option); |
| 34 | } |
| 35 | }; |
| 36 | |
| 37 | const dig = (optionList: OptionType[], isChildren = false) => { |
| 38 | // for loop to speed up collection speed |
no outgoing calls
no test coverage detected
searching dependent graphs…