JavaScript learning corner weekly updates (3.24.22)

  • The every() method executes a function for each array element.
  • The every() method returns true if the function returns true for all elements.
  • The every() method returns false if the function returns false for one element.
  • The every() method does not execute the function for empty elements.
  • The every() method does not change the original array.
https://www.w3schools.com/jsref/jsref_every.asp
//using has() referenced from MDN Web Docs 
let myMap = new Map()
myMap.set('bar', "foo")
myMap.has('bar') // returns true
myMap.has('baz') // returns false

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Toni T Diep

Toni T Diep

multilingual Software Engineer, always learning and growing.