JavaScript libraries simplify common tasks such as data manipulation, date handling, and more. These libraries can be accessed using their imported names inside Appsmith.
Appsmith provides the following built-in JavaScript libraries that can be utilized in your applications.
{{ _.sortBy(fetchUsers.data, ["age"]) }}
For more information, see Lodash
{{ moment(datePicker1.selectedDate.format('DD MMM')) }}
For more information, see Moment
export default {
hash() {
var md = forge.md.sha256.create();
md.update("The quick brown fox jumps over the lazy dog");
return md.digest().toHex();
},
};For more information, see Forge
You can also follow this guide to install external JavaScript libraries that are not loaded by default into your application.