score:1

Accepted answer
  const filteredParams = (value) => {
    const filterParams = Object.keys(dataJobParams).filter(
      (el) => el === value
    );
    console.log("filteredParams: ", filterParams)
    return filterParams;
  };

score:1

  const onHandleSlider = (value = "small_data_load") => {
    const _value = dataParams(value);
    const finalValue = filteredParams(_value);
    console.log({ finalValue });
  };

  const filteredParams = (value = "small_data_load") => {
    console.log(value);
    const getValues = Object.entries(dataJobParams);
    const filtredValues = getValues.filter((el) => el[0] === value);
    return {
      name: value,
      values: filtredValues[0][1]
    };
  };

Related Query

More Query from same tag