I am trying to experiment around destructuring assignment. Now I have a case which I trying to cop up with destructuring itself.
For example, I have an input like th
If you don't mind using lodash, you can try this:
lodash
import { mapValues } from 'lodash'; const input = {latitude: "17.0009", longitude: "82.2108"} const {latitude, longitude} = mapValues(input, Number);