Detect when your site is visible to users

tipjs,web_developer

document.onvisibilitychange = function () {
          document.visibilityState === "visible"
             ? (document.title = "👋 Hello")
             : (document.title = "😟 Bye!");
       };

Có thể bạn đã miss một số snippets code

Đếm có bao nhiêu items giống nhau trong một array

reduce javascript. Đếm có bao nhiêu items giống nhau trong một array

using Typescript callback style error handling

Merge Array

How to combine two sorted arrays into one? We can do this easily with the spread operator.

Extend Object javascript

Extend Object javascript

Lấy ngày hiện tại trong javascript

Lấy ngày hiện tại trong javascript