Optional
match
Match expression
0.3.3
match(String(5), { "1": "One", "3": "Three", "5": "Five" }); // ➜ "Five"match(5, new Map([ ["5", "Oh no!"], [5, "OK"], ])); // ➜ "OK"match(5, { 5: "Five" }, undefined, true); // ➜ "Five" Copy
match(String(5), { "1": "One", "3": "Three", "5": "Five" }); // ➜ "Five"match(5, new Map([ ["5", "Oh no!"], [5, "OK"], ])); // ➜ "OK"match(5, { 5: "Five" }, undefined, true); // ➜ "Five"
Name
match
Description
Match expression
Since
0.3.3
Example: Usage: