3 रिपॉजिटरी
Testing that a subject is iterable with a specific number of items, matching each item against a sub-pattern.
Distinct from Structural Pattern Matching: Distinct from Structural Pattern Matching: focuses specifically on array/iterable length and element matching, not general structural matching.
Explore 3 awesome GitHub repositories matching programming languages & runtimes · Array Structure Matching. Refine with filters or upvote what's useful.
This is a TC39 proposal to add declarative pattern matching syntax to the ECMAScript language. It introduces a match expression that allows developers to inspect and branch on data structures using patterns with destructuring, guards, and logical combinators. The proposal defines a custom matcher protocol via a well-known symbol, enabling objects to implement user-defined matching logic with arbitrary extraction and decomposition. The proposal supports matching against literal primitives using SameValue equality with special handling for signed zero and NaN, as well as relational comparison
Tests that a subject is iterable with a specific number of items, matching each against sub-patterns.
Sugar, डेटा हेरफेर और परिवर्तन के लिए अतिरिक्त विधियों के साथ नेटिव ऑब्जेक्ट्स और प्रोटोटाइप का विस्तार करने के लिए डिज़ाइन की गई एक JavaScript उपयोगिता लाइब्रेरी है। यह ऑब्जेक्ट उपयोगिताओं, तिथि हेरफेर, स्ट्रिंग इन्फ्लेक्शन, और लापता या टूटी हुई मानक भाषा सुविधाओं के पॉलीफिलिंग के लिए एक टूलकिट के रूप में कार्य करता है। यह लाइब्रेरी वैश्विक प्रोटोटाइप को संशोधित किए बिना विधि चेनिंग को सक्षम करने के लिए सीधे बिल्ट-इन प्रोटोटाइप पर उपयोगिता विधियों को मैप करने या अस्थायी ऑब्जेक्ट्स में मानों को लपेटने की क्षमता प्रदान करती है। इसमें लापता आधुनिक भाषा कार्यक्षमता को लागू करके विभिन्न निष्पादन वातावरणों में सुसंगत व्यवहार सुनिश्चित करने के लिए एक पॉलीफिल सिस्टम भी शामिल है। क्षमताओं में अंतर्राष्ट्रीय तिथि स्वरूपण और मानवकृत तिथि स्ट्रिंग की पार्सिंग शामिल है। यह लाइब्रेरी स्ट्रिंग इन्फ्लेक्शन और सामान्यीकरण, नेस्टेड ऑब्जेक्ट्स के गहरे संपत्ति ट्रैवर्सल, और लोकेल-जागरूक सरणी सॉर्टिंग के माध्यम से प्राकृतिक भाषा प्रसंस्करण को भी संभालती है। इसके अतिरिक्त, यह परिवर्तनीय ऑब्जेक्ट्स को क्लोन करने और संख्याओं, तिथियों और स्ट्रिंग्स के लिए मान रेंज को परिभाषित करने के लिए टूल प्रदान करती है।
Simplifies array element matching using strings, regular expressions, or partial object shortcuts.
Z is a pattern matching library for JavaScript that evaluates variables against structural shapes, data types, and literal values to branch program execution conditionally. It functions as a functional programming utility designed to deconstruct arrays and objects into parts during conditional evaluation. The library transforms human-friendly pattern matching syntax into optimized nested conditional statements during compilation or initialization phases, evaluating complex structural conditions and returning matching branch results directly as standard expression values. It inspects runtime d
Evaluate variables against literal values, structural shapes, arrays, types, and class instances to branch program execution.