awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

3 个仓库

Awesome GitHub RepositoriesArray Structure Matching

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.

Awesome Array Structure Matching GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • tc39/proposal-pattern-matchingtc39 的头像

    tc39/proposal-pattern-matching

    5,782在 GitHub 上查看↗

    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.

    HTML
    在 GitHub 上查看↗5,782
  • andrewplummer/sugarandrewplummer 的头像

    andrewplummer/Sugar

    4,506在 GitHub 上查看↗

    Sugar 是一个 JavaScript 实用程序库,旨在通过额外的方法扩展原生对象和原型,以进行数据操作和转换。它作为一个工具包,用于对象实用程序、日期操作、字符串变形以及缺失或损坏的标准语言功能的 Polyfill。 该库提供了将实用方法直接映射到内置原型或将值包装在临时对象中以实现方法链的能力,而无需修改全局原型。它还包括一个 Polyfill 系统,通过实现缺失的现代语言功能来确保跨不同执行环境的一致行为。 功能包括国际日期格式化和人类可读日期字符串的解析。该库还通过字符串变形和规范化、嵌套对象的深度属性遍历以及区域感知数组排序来处理自然语言处理。此外,它还提供了用于克隆可变对象以及定义数字、日期和字符串值范围的工具。

    Simplifies array element matching using strings, regular expressions, or partial object shortcuts.

    JavaScript
    在 GitHub 上查看↗4,506
  • z-pattern-matching/zz-pattern-matching 的头像

    z-pattern-matching/z

    1,715在 GitHub 上查看↗

    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.

    JavaScriptfunctional-programmingimmutabilitypattern-matching
    在 GitHub 上查看↗1,715
  1. Home
  2. Programming Languages & Runtimes
  3. Structural Pattern Matching
  4. Array Structure Matching

探索子标签

  • Flexible Array MatchingMatching array elements using shortcuts like regular expressions or partial objects. **Distinct from Array Structure Matching:** Distinct from Array Structure Matching: focuses on flexible element matching rather than just the structure or length of the iterable.