MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add match demo

+11
+11
examples/demo/match.js
··· 1 + const msg = Ant.match(process.argv[2], { 2 + 200: 'ok', 3 + 404: 'not found', 4 + [$ >= 500 && $ < 600]: 'server error', 5 + [Symbol.default]: code => { 6 + console.log('unexpected code'); 7 + return `unknown value ${code}`; 8 + } 9 + }); 10 + 11 + console.log(msg);