Function multipleSelectFilter

  • Type Parameters

    • T extends string | number

      the type of the keys in the collections.

    • U extends object

      the type of the objects in the collections.

    • K extends string | number | symbol

      the type of the key to be used to compare objects in the collections.

    Parameters

    • oldSelectKeys: T[]

      the original collection of keys.

    • newSelectKeys: T[]

      the new collection of keys.

    • oldSelected: U[]

      the original collection of objects.

    • newSelected: U[]

      the new collection of objects.

    • key: K

      the key to be used to compare objects in the collections.

    Returns U[]

    the updated collection of objects based on the difference between the two collections of keys.

    Description

    This function calculates the difference between two collections of items and returns the updated collection based on the difference.

Generated using TypeDoc