How to remove an element using lodash/fp's set
or equivalent method.
I tried
_.set({data:[1,2,3]},"data[1]", undefined)
which results in
{data:[1,undefined,3]}
where as I would like to get the output as {data:[1,3]}
also tried unset
which results in {data:[1,empty,3]}