static filterOptions(inputValue, properties) { /* eslint react/sort-comp:0*/
    let filteredOptions = [];
    if (!isEmpty(properties.children)) {
      if (inputValue) {
        filteredOptions = filterReactChildren(properties.children, (entry) => (
          properties.filterFunc(inputValue, entry.props.value)
        ));
      } else {
        filteredOptions = getArrayForReactChildren(properties.children, (entry) => entry);
      }

      if (properties.maxOptions) {
        filteredOptions = filteredOptions.splice(0, properties.maxOptions);
      }
    }

    return filteredOptions;
  }
Function to filter options using input value.