Making lodash function get type safe
dev.to