Open xgqfrms opened 4 years ago
import lInvert from 'lodash/invert'
export const DeliverType = {
1: 'deliver',
2: 'selfget',
3: 'onsite',
4: 'eticket',
5: 'eticket-epass',
}
export const DeliverTypeByName = lInvert(DeliverType)
? override
lodash invert
http://lodash.think2011.net/invert https://www.lodashjs.com/docs/lodash.invert
https://stackoverflow.com/questions/35175409/lodash-method-for-reversing-key-values-in-object