The Tools JavaScript library
JavaScript methods to reformat data.
Classic apps
You're viewing documentation for classic apps, which use Retool's original app editor. The new app builder is the recommended way to build apps and where Retool focuses new development.
Utility functions to transform data.
Methods
You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
swap()
Swap the position of two array items.
Definition
swap(swapOptions)