Function slice

  • Creates a shallow copy of obj containing only the properties specified in props

    Type Parameters

    • T

    • K extends string | number | symbol

    Parameters

    • obj: T

      the object to copy

    • Rest ...props: K[]

      the properties to include in the returned object

    Returns Pick<T, K>

Generated using TypeDoc