Interface IListControl

List control interface.

interface IListControl {
    add(...args: any[]): void;
    del(...args: any[]): boolean;
    find(...args: any[]): any;
    has(...args: any[]): boolean;
}

Implemented by

Methods

Methods

  • Add a target to the list.

    Parameters

    • Rest...args: any[]

      To be added

    Returns void

  • Delete the target from the list.

    Parameters

    • Rest...args: any[]

      To be deleted

    Returns boolean

    If the target is successfully deleted true, otherwise false

  • Find the target in the list.

    Parameters

    • Rest...args: any[]

      what to look for

    Returns any

    If a target exists, that target; if it does not exist, it is undefined

  • Check the presence of a target in the list.

    Parameters

    • Rest...args: any[]

      the objects to check for existence

    Returns boolean

    True if the object exists, false otherwise