Core (dw::Core)
This module contains core DataWeave functions for data transformations. It is automatically imported into any DataWeave script.
Functions
| Name | Description | 
|---|---|
| Concatenates two values. | |
| Removes specified values from an input value. | |
| Returns the absolute value of a number. | |
| Returns the average of numbers listed in an array. | |
| Rounds a number up to the nearest whole number. | |
| Returns  | |
| Returns the number of days between two dates. | |
| Iterates over the input and returns the unique elements in it. | |
| Returns  | |
| Returns an array of key-value pairs that describe the key, value, and any attributes in the input object. | |
| Iterates over an array and applies an expression that returns matching values. | |
| Iterates a list of key-value pairs in an object and applies an expression that returns only matching objects, filtering out the rest from the output. | |
| Returns indices of an input that match a specified value. | |
| Iterates over each item in an array and flattens the results. | |
| Turns a set of subarrays (such as  | |
| Rounds a number down to the nearest whole number. | |
| Returns an object that groups items from an array based on specified criteria, such as an expression or matching selector. | |
| Returns the index of the first occurrence of the specified element in this array, or  | |
| Returns  | |
| Returns  | |
| Returns  | |
| Returns  | |
| Returns  | |
| Returns  | |
| Returns  | |
| Merges an array into a single string value and uses the provided string as a separator between each item in the list. | |
| Returns an array of keys from key-value pairs within the input object. | |
| Returns the index of the last occurrence of the specified element in a given
array or  | |
| Without changing the value of the input,  | |
| Returns the provided string in lowercase characters. | |
| Iterates over items in an array and outputs the results into a new array. | |
| Iterates over an object using a mapper that acts on keys, values, or indices of that object. | |
| Uses a Java regular expression (regex) to match a string and then separates it into capture groups. Returns the results in an array. | |
| Checks if an expression matches the entire input string. | |
| Returns the highest  | |
| Iterates over an array and returns the highest value of
 | |
| Returns the lowest  | |
| Iterates over an array to return the lowest value of comparable elements from it. | |
| Returns the modulo (the remainder after dividing the  | |
| Returns an array of strings with the names of all the keys within the given object. | |
| Returns a  | |
| Executes a callback function if the preceding expression returns a  | |
| Reorders the elements of an input using criteria that acts on selected elements of that input. | |
| Useful for mapping an object into an array,  | |
| Raises the value of a  | |
| Returns a pseudo-random number greater than or equal to  | |
| Returns a pseudo-random whole number from  | |
| Reads a string or binary and returns parsed content. | |
| Reads a URL, including a classpath-based URL, and returns parsed content.
This function works similar to the  | |
| Applies a reduction expression to the elements in an array. | |
| Performs string replacement. | |
| Rounds a number up or down to the nearest whole number. | |
| Returns an array with all of the matches found in an input string. | |
| Returns the number of elements in an array. It returns  | |
| Splits a string into a string array based on a value that matches part of that string. It filters out the matching part from the returned array. | |
| Returns the square root of a number. | |
| Returns  | |
| Returns the sum of numeric values in an array. | |
| This function works as a pipe that passes the value returned from the
preceding expression to the next (a callback) only if the value returned
by the preceding expression is not  | |
| Returns a range with the specified boundaries. | |
| Removes any blank spaces from the beginning and end of a string. | |
| Returns the basic data type of a value. | |
| Performs the opposite of  | |
| Returns the provided string in uppercase characters. | |
| Returns a v4 UUID using random numbers as the source. | |
| Returns an array of the values from key-value pairs in an object. | |
| Helper function that specifies a replacement element. This function is used with  | |
| Writes a value as a string or binary in a supported format. | |
| Creates a  | |
| Merges elements from two arrays into an array of arrays. | 



