reading-notes


Project maintained by mr-atta Hosted on GitHub Pages — Theme by mattgraham

Node Ecosystem, TDD, CI/CD

.map

Array.map()

Parameters :

  1. callbackFn
  2. element
  3. index (Optional)
  4. array (Optional)
  5. thisArg (Optional)

LIKE

let numbers = [1, 4, 9] let roots = numbers.map(function(num) { ` return Math.sqrt(num) })`

.reduce

Array.reduce()

Parameters :

  1. callbackFn
  2. accumulator
  3. currentValue

  4. index (Optional)
  5. array (Optional)
  6. initialValue (Optional)

LIKE

[0, 1, 2, 3, 4].reduce((accumulator, currentValue, currentIndex, array) => { return accumulator + currentValue }, 10)

superagent()

promises

Are all callback functions considered to be Asynchronous? Why or Why Not?

mdn

code