h1z1-server
    Preparing search index...

    Class customLodash

    Represents a custom implementation of lodash library.

    Index

    Constructors

    Methods

    • Create a deep clone of the given value.

      Parameters

      • value: unknown

        The value to clone.

      Returns unknown

      The cloned value.

    • Deletes the specified entry from the given array.

      Parameters

      • array: any[]

        The array to delete the entry from.

      • entry: any

        The entry to delete from the array.

      Returns void

    • Fills the provided array with the specified object.

      Parameters

      • array: any[]

        The array to fill.

      • object: any

        The object to fill the array with.

      Returns any[]

      The modified array after filling.

    • Find the first element in the array that satisfies the filter function.

      Parameters

      • array: any[]

        The array to search in.

      • filter: any

        The filter function.

      Returns any

      The first matching element, or undefined if not found.

    • Iterates over each property in the given object and invokes the provided callback function.

      Parameters

      • object: Record<string, unknown>

        The object to iterate over.

      • callback: (arg0: any) => void

        The function to be called for each property in the object.

      Returns void

    • Check if two arrays are equal.

      Parameters

      • array1: any[]

        The first array.

      • array2: any[]

        The second array.

      Returns boolean

      True if the arrays are equal, false otherwise.

    • Calculates and returns the number of properties in the given object.

      Parameters

      • object: Record<string, unknown>

        The object to get the size of.

      Returns number

      The number of properties in the object.

    • Calculate the sum of numbers in an array.

      Parameters

      • pings: number[]

        The array of numbers.

      Returns number

      The sum of numbers.