Skip to content
tsmx

tsmx

pragmatic IT

  • start
  • npm-packages

Month: June 2021

JavaScript Map: sorted for-loop with a custom iterator

20. August 20211. June 2021 by tsmx-dev

An elegant way of how to do a sorted iteration over all entries of a JavaScript Map with a for-loop using a custom iterator implemented with Symbol.iterator, function* and yield*.

Read more

Categories Development, NodeJS Tags for-loop, function*, iterate, JavaScript, Map, NodeJS, sort, Symbol.iterator, yield, yield*

Recent Posts

  • MongoDB: add/update fields referencing other existing fields using aggregation pipelines
  • Connecting from a Docker container to a local MongoDB
  • Full code-coverage with Jest
  • Creating a time series sample CSV file with a bash script
  • npm major package upgrades with backward patch support

Categories

  • Cloud (1)
  • Development (5)
  • GCP (1)
  • MongoDB (1)
  • NodeJS (11)

Archives

  • April 2022
  • January 2022
  • November 2021
  • October 2021
  • September 2021
  • June 2021
  • March 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020

Links

Privacy Policy | Imprint

© 2022 tsmx • Built with GeneratePress