Special equipments class for extended functionality

Hierarchy

Constructors

Properties

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

Methods

  • Get equipment using everything

    Parameters

    • query: string

      basically anyting i guess

    Returns [] | Equipment[]

  • Lists the equipments by category

    Parameters

    • category: string

      name of the category you want to search for

    Returns [] | Equipment[]

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

    Parameters

    • predicate: ((value: Equipment, index: number, array: Equipment[]) => 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: Equipment, index: number, array: Equipment[]) => 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 Equipment[]

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

    Parameters

    • callbackfn: ((value: Equipment, index: number, array: Equipment[]) => 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<Equipment>[]

  • Get equipment using name in any language or id

    Parameters

    • query: string

      Equipment name in any language or equipment id

    Returns Equipment | Equipment[]

  • Get by id

    Parameters

    • id: string

      String of number

    Returns undefined | Equipment

  • 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: Equipment, index: number, array: Equipment[]) => 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[]

  • Get equipment by name

    Parameters

    • name: string

      Equipment name

    • languages: Language[] = ...

      Language to search

    Returns [] | Equipment[]

  • Lists the equipments by nationality

    Parameters

    • nationality: string

      naitionality name of the equipments you want to search for

    Returns [] | Equipment[]

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

    Parameters

    • predicate: ((value: Equipment, index: number, array: Equipment[]) => 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