On several occasions, I've wanted to use when.reduce() on an object's keys rather than on an array, and @sifu recently tweeted something similar about when.all(). Also, promised-io provides allKeys(), in parallel to all().
It'd be great to find an elegant way to support object keys across all the when.js "array" methods. One approach might be to create equivalent "keys" methods: allKeys(), reduceKeys(), etc., or to provide an additional module that houses the object key versions of those methods.
Not sure what is best here, so looking for input, keeping in mind that staying as compact as possible is an important goal :)
On several occasions, I've wanted to use
when.reduce()on an object's keys rather than on an array, and @sifu recently tweeted something similar aboutwhen.all(). Also, promised-io providesallKeys(), in parallel toall().It'd be great to find an elegant way to support object keys across all the when.js "array" methods. One approach might be to create equivalent "keys" methods:
allKeys(),reduceKeys(), etc., or to provide an additional module that houses the object key versions of those methods.Not sure what is best here, so looking for input, keeping in mind that staying as compact as possible is an important goal :)