GithubHelp home page GithubHelp logo

Comments (4)

rpamely avatar rpamely commented on September 18, 2024

It's not clear to my why you prefer this over the current proposal. You can derive an array of status in the existing proposal if you need.

With your suggestion you will need to iterate over two arrays in sync to read the value and status. This is not great in my opinion.

from proposal-promise-allsettled.

phistuck avatar phistuck commented on September 18, 2024

This is just a suggestion for a feature, not a concrete proposal that it should be written exactly this way.

What if there is no value either way? You cannot infer the result in that case (I know it may sound like an an API/bad practice issue to you).

from proposal-promise-allsettled.

rpamely avatar rpamely commented on September 18, 2024

Sorry, I actually misunderstood you were suggesting the first parameter stay unchanged.

The first parameter currently is an array of objects. These objects contain the status. What is unsuitable about this for analytics or logging? You could easily results.map(r => r.status) to get the array you want for the second parameter? Unless I am missing something again?

from proposal-promise-allsettled.

phistuck avatar phistuck commented on September 18, 2024

I think I missed that, for some reason. Closing this.

from proposal-promise-allsettled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.