5 ms·
JavaScript will have limited pattern matching. (Better than Python's, because it allows both array patterns and object patterns.) http://wiki.ecmascript.org/do
by sanxiyn 15y ago
JavaScript will have limited pattern matching. (Better than Python's, because it allows both array patterns and object patterns.)
http://wiki.ecmascript.org/doku.php?id=harmony:destructuring http://wiki.ecmascript.org/doku.php?id=harmony:destructuring