Implement JS Array methods with Reduce

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 7

  • @AK-vx4dy
    @AK-vx4dy 2 години тому

    Nice mind bender excersises and moment to consider how powerful some constructs are.

  • @qodesmith520
    @qodesmith520 16 годин тому +1

    Welcome back! Look fwd to great JS / TS content in 2025 😎

  • @noriller
    @noriller 2 години тому

    this is a great exercise! gonna pass it to some people I know =D

  • @paoloricciuti
    @paoloricciuti 16 годин тому +1

    You could technically implement optimal every and some with reduce by throwing an error and return opposite in the catch (but I guess that's not really "with reduce") 😁

  • @kardashevr
    @kardashevr 17 годин тому

    use map if you want to transform each item in an array
    use reduce to transform the whole array into something

  • @TheGB-qc9ts
    @TheGB-qc9ts 10 годин тому +1

    Please turn off automatic dubbing... It's awful.