Special voicelines class for extended functionality

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

client: AzurAPI
fuse?: Fuse<Voiceline>
raw: Voiceline[]

Methods

  • Determines whether all the members of an array satisfy the specified test

    Parameters

    • predicate: ((value: Voiceline, index: number, array: Voiceline[]) => unknown)

      A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

    Returns boolean

  • Returns the elements of an array that meet the condition specified in a callback function.

    Parameters

    • predicate: ((value: Voiceline, index: number, array: Voiceline[]) => unknown)

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

    Returns Voiceline[]

  • Performs the specified action for each element in an array.

    Parameters

    • callbackfn: ((value: Voiceline, index: number, array: Voiceline[]) => void)

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

    Returns void

  • Search fuse cache

    Parameters

    • name: string

      Any

    Returns FuseResult<Voiceline>[]

  • Get by any

    Returns

    Array

    Parameters

    • shipNameOrId: string

      Any

    Returns Voiceline

  • Calls a defined callback function on each element of an array, and returns an array that contains the results.

    Type Parameters

    • U

    Parameters

    • callbackfn: ((value: Voiceline, index: number, array: Voiceline[]) => U)

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

    Returns U[]

  • Determines whether the specified callback function returns true for any element of an array.

    Parameters

    • predicate: ((value: Voiceline, index: number, array: Voiceline[]) => unknown)

      A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

    Returns boolean

Generated using TypeDoc