Example 1 — Demo
Core idea.
JavaScript
console.log(typeof Symbol.matchAll);
console.log(Symbol.matchAll.description || "(no description)");How It Works
- Well-known. Symbol.matchAll is a symbol.
- Role. Protocol used by String.prototype.matchAll.
Symbol.matchAll is a well-known symbol. Protocol used by String.prototype.matchAll.
console.log(typeof Symbol.matchAll);
console.log(Symbol.matchAll.description || "(no description)");Core idea.
console.log(typeof Symbol.matchAll);
console.log(Symbol.matchAll.description || "(no description)");CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
6 people found this page helpful