You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Translates the values contained in array, using the specified translation table, and returns the results in a new array.
table.translate(arr, translation)
Parameters
arr is the array of values to be translated. translation is a key-value table containing the replacement values, or a function taking a single value and returning the translation.
Return Value
Returns a new array containing the translated values.