it comes out from time to time devs would like to have `Object.values()` as
equivalent of `Object.keys()` except the returned array would contain
values.

Better than repeated
`Object.keys(obj).map(function(p){return this[k];}, obj);`
all over

but probably less useful than a more generic `Object.forEach(obj, callback,
thisValue)` where `callback` would receive `(value, key, originalObject)`
and `thisValue` as context.

This is consistent with `Array#forEach` and could simplify `for/in` loops
passing over own enumerable properties only, as keys would do.

Thoughts ?
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to