Function Reference

Complete reference for all JEXL Extended functions and transforms

Function Reference

JEXL Extended provides over 80 built-in functions and transforms organized into the following categories:

  • Math: Mathematical operations and calculations (11 functions, 10 transforms)
  • Array: Array operations and transformations (16 functions, 16 transforms)
  • Encoding: Data encoding and formatting utilities (3 functions, 3 transforms)
  • Conversion: Convert between different data types (8 functions, 8 transforms)
  • String: String manipulation and formatting functions (14 functions, 14 transforms)
  • Utility: General utility functions (5 functions, 4 transforms)
  • DateTime: Date and time operations (6 functions, 4 transforms)
  • Object: Object manipulation and inspection (3 functions, 3 transforms)

Usage

Functions are called directly:

abs(-5) // Returns: 5
max([1, 2, 3]) // Returns: 3

Transforms are used with the pipe operator:

"hello world" | uppercase // Returns: "HELLO WORLD"
[1, 2, 3] | map("value * 2") // Returns: [2, 4, 6]

Many functions can also be used as transforms when they have a single parameter.

Cookie Notice

We use cookies to enhance your browsing experience.