stringLengthForList

Modified on Fri, 18 Aug 2023

Description

Calculate the lengths of each string in a list

Syntax

stringLengthForList(array)

Parameters

Input ParameterTypeDescription
arrayArrayThe list of input strings to calculate lengths for

Return value

Type
Array<any

Sample

ExampleResultDescription
stringLengthForList(["ABCD", "", "123", 123])[4, 0, 3, 0]An array containing the lengths of each input string

To view all the List functions, click here.

See Also