• Skip to main navigation
  • Skip to main content
  • Skip to footer
  • Home
  • About
  • Contact
  • Hire me
  • Skip to menu toggle button
Night Coder

Night Coder

Tag: javascript

ReactJS: Handle Single-Click and DoubleClick at the same time (Click Manager)

Sometimes you need to have both single-click and double-click handler on a component. You don’t want to single-click-handler run when…
Continue reading “ReactJS: Handle Single-Click and DoubleClick at the same time (Click Manager)”…
Posted on: January 18, 2022 Last updated on: January 19, 2022 Comments: 0 Written by: ali111

JavaScript: [].concat() Trick for making a union of items easily

If you don’t know an array is real array or is null (it happens when interacting with database most), and…
Continue reading “JavaScript: [].concat() Trick for making a union of items easily”…
Posted on: December 19, 2021 Last updated on: December 23, 2021 Comments: 2 Written by: ali111

JavaScript: Better loop instead of for()

Sometimes we only need a quicker way to making a loop with a specific number of loops. Just do this:…
Continue reading “JavaScript: Better loop instead of for()”…
Posted on: November 6, 2021 Last updated on: December 23, 2021 Comments: 0 Written by: ali111

Archives

  • January 2022
  • December 2021
  • November 2021

Categories

  • Uncategorized

About

Hey, I’m Ali Amini. I’m collecting here every amazing things I learn about coding. More…

© 2022 Night Coder | Using Modern WordPress theme. | Back to top ↑