For AI agents: the complete documentation index is available at /tc39-atlas/llms.txt, the full documentation bundle is available at /tc39-atlas/llms-full.txt, and this page is available as Markdown at /tc39-atlas/proposals/reflect-iscallable-isconstructor.md.
  • 简体中文
  • Reflect.{isCallable,isConstructor} S0

    提案概览
    提案速览

    该提案旨在向 ECMAScript 添加 Reflect.isCallable 和 Reflect.isConstructor 方法,分别提供检查一个值是否可调用或可构造的方式。它解决了语言中缺乏对这些属性的直接反射检查的问题。作为 TC39 提案,它尚未标准化,处于早期考虑阶段。

    Note

    以下 README 来自上游仓库,其中的阶段或状态标注可能滞后;当前信息以提案概览为准。

    TC39-Proposals

    可能适合纳入 ECMA 262 的内容