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

    Function pickProperties

    • Create a new object with only the specified properties of the given object.

      if null is passed as the object, an empty object will be returned.

      Type Parameters

      • T extends null | IObject
      • TKeys extends string | number | symbol

      Parameters

      • obj: T

        The object to pick properties from

      • keys: TKeys[]

        The properties to pick

      Returns Pick<T, TKeys>

      A new object with only the specified properties