• 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

    • Examples
    • Protocol
    • Relay
    • Owner
    • Indexes
    • Migrations
    • Patterns
    • Time travel
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

API reference / @evolu/common / Object / excludeProp

Function: excludeProp()

function excludeProp<T, K>(
   obj, 
   prop, 
condition?): Omit<T, K>;

Defined in: packages/common/src/Object.ts:54

Conditionally excludes a property from an object.

Type Parameters

Type Parameter
T extends object
K extends string | number | symbol

Parameters

ParameterType
objT
propK
condition?boolean

Returns

Omit<T, K>

Was this page helpful?

© Copyright 2025. All rights reserved.

Follow us on GitHubFollow us on XJoin our Discord server