Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Array<T>

Array (Native)

The ThoughtAsylum library includes a set of extensions to the standard Array object. These are used to simplify common actions in terms of interrogating and updating arrays.

Type parameters

  • T

Hierarchy

  • Array

Index

Methods

TA_maxElementLength

  • TA_maxElementLength(): number
  • Return the length of the longest element in an array.

    // Example
    alert(["red", "green", "blue"].TA_maxElementLength());
    // Displays 5 as 'green' is the longest string in the array and is 5 characters long
    

    Returns number