Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Array

Array (Native)

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

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