• The method can be used to exclude keys from an instance of type E.

    We can use this to exclude values when searching an object.

    Type Parameters

    • E

    Parameters

    • entity: any

      An instance of type E

    • exclude: string[]

      The keys to exclude

    Returns string[]

    Example

    todo = { id: '1', description: 'Do it!' }
    let keys = excludeKeys<Todo>(todo, ['id]);
    // keys = ['description']

Generated using TypeDoc