rightForList
Modified on Fri, 18 Aug 2023
Description
Return a specified number of characters from the end of each string in a list
Syntax
rightForList(array, length)
Parameters
Input Parameter | Type | Description |
---|---|---|
array | Array | The list of input strings |
length | number | The number of characters to return from the end |
Return value
Type |
---|
Array<any |
Sample
Example | Result | Description |
---|---|---|
rightForList(["abcd", "ab", ""], 3) | ["bcd", "ab", ""] | An array containing substrings with the rightmost characters from each input string |
To view all the List functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article