message: ChipsInput: move already existing chip to the end
  refactor array traversals to optimise toggleOption
diff: @@ -18,13 +18,10 @@ export const useChipsInput = <Option extends ChipsInputOption>(props: Partial<Ch
  }, [onInputChange]);
  const toggleOption = useCallback((newOption: Option, value?: boolean) => {
  - let newSelectedOptions = [...selectedOptions];
  - const isOptionSelected = selectedOptions.find((option: Option) => getOptionValue(newOption) === getOptionValue(option));
  + const newSelectedOptions = selectedOptions.filter((option: Option) => getOptionValue(newOption) !== getOptionValue(option));
  - if (isOptionSelected || value === false) {
  - newSelectedOptions = selectedOptions.filter((option: Option) => getOptionValue(option) !== getOptionValue(newOption));
  - } else if (!isOptionSelected || value === true) {
  - newSelectedOptions = [...selectedOptions, newOption];
  + if (value === true) {
  + newSelectedOptions.push(newOption);
  }
  setSelectedOptions(newSelectedOptions);
  