• Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • Blog
  • GitHub
  • Releases
  • Getting Started

    • Quickstart
  • Library

    • Result
    • Type
    • Dependency Injection
    • Conventions
  • Local-First

    • How It Works
    • Indexes
    • Migrations
    • Patterns
    • Time travel
    • Examples
  • Other

    • API Reference
    • Comparison
    • Showcase
    • FAQ
    • Changelog

API Reference / @evolu/common / Array / mapNonEmptyArray

Function: mapNonEmptyArray()

function mapNonEmptyArray<T, U>(array, mapper): readonly [U, U];

Defined in: packages/common/src/Array.ts:32

Maps a non-empty array using a mapper function.

Type Parameters

Type Parameter
T
U

Parameters

ParameterType
arrayreadonly [T, T]
mapper(item, index) => U

Returns

readonly [U, U]

Was this page helpful?

© Copyright 2025. All rights reserved.

Follow us on GitHubFollow us on XJoin our Discord server