Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

excludeFields

  • excludeFields<T, K>(obj: T, ...fields: K []): Omit<T, K>

排除对象中的指定字段 注: 此处将获得一个浅拷贝对象

Type parameters

  • T: object
  • K: keyof T

Parameters

  • obj: T

    排除对象

  • ...fields: K [] Rest

    要排除的多个字段

Returns Omit<T, K>

排除完指定字段得到的新的对象

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.