@mumia like this you mean?

...
        .reduce(
            function(obj, pair){
                obj[pair[0].toString()]=pair[1];
                return obj;
            },
            {}
        )
        ;
};



On Tue, Feb 25, 2014 at 6:22 PM, Miguel Manso <notifications@github.com>wrote:

> In service_container.js:
>
> > +    var self = this;
> > +    return Object.keys(this.defers)
> > +        .map(
> > +            function(key){
> > +                var state = self.defers[key].promise.inspect().state;
> > +                var reason = self.defers[key].promise.
> inspect().reason || "";
> > +                return ([key, state === 'rejected' ? state + " because " + reason : state]);
> > +            }
> > +        )
> > +        .reduce(
> > +            function(obj, pair){
> > +                obj[pair[0].toString()]=pair[1];
> > +                return obj;
> > +            },
> > +            {}
> > +        );
>
> Move the ; to the next line.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/uniplaces/async-container/pull/1/files#r10048480>
> .
>