The map function in underscore.js, if called with a javascript object, returns an array of values mapped from the object\'s values.
map
_.map({one:
I know it's been a long time, but still the most obvious solution via fold (aka reduce in js) is missing, for the sake of completeness i'll leave it here:
function mapO(f, o) { return Object.keys(o).reduce((acc, key) => { acc[key] = f(o[key]) return acc }, {}) }