Show / Hide Table of Contents

max

number|string|null max(array[number]|array[string] value)

Returns the highest number found in an array of numbers, or the highest string in an array of strings, or null if the array is empty.

It is a type error if

  • the provided value is not an array

  • the array contains items that are not all numbers or all strings

Examples

  • Improve this Doc
In This Article
Back to top Generated by DocFX