Coder Social home page Coder Social logo

functional-javascript-01's Issues

[함수형 프로그래밍과 JavaScript ES6+ 강의] 지연된 함수열을 병렬적으로 평가하기 - C.reduce, C.take [2] 관련 질문

10. 비동기 동시성 프로그래밍 2/1/html/1-2.html에서

const catchNoop = ([...arr]) =>
    (arr.forEach(a => a instanceof Promise ? a.catch(noop) : a), arr);

에서 catchNoop 함수가 리턴해주는 값의 문이 이해가 잘 가지 않네요 ㅠ

const catchNoop = ([...arr]) =>
    {
        arr.forEach(a => a instanceof Promise ? a.catch(noop) : a)
        return arr
    };

로 수정하면 잘 동작하는것 같은데 제가 잘 이해하지 못한 부분이 있는걸까요 아니면 코드가 잘못된걸까요?

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.