Documents for @litert/utils-object
    Preparing search index...

    Function copyProperties

    • Copy properties from one object to another.

      This function is aimed to solve the problem of the typescript syntax error when copying properties from a source object to a destination object, even if both objects are the same type.

      Type Parameters

      • T extends IObject

      Parameters

      • dst: T

        The destination object where properties will be copied to

      • src: Partial<T>

        The source object from which properties will be copied

      • properties: (keyof T)[]

        The list of properties to copy

      Returns void