Skip to content

Implement Array.flat, flatMap, and splice #4

@memburg

Description

@memburg

Goal

Add the next high-impact Array methods after callback basics.

Why

These methods are common in real-world scripts and complete many practical array workflows.

Scope

Implement support for:

  • Array.prototype.flat
  • Array.prototype.flatMap
  • Array.prototype.splice

Plan

  • Add runtime implementations for each method.
  • Ensure expected mutation/non-mutation behavior.
  • Add specs for typical usage and argument validation.
  • Update type/reference docs.

Out of Scope

  • Full edge-case parity for sparse arrays in first pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions