Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

charCodeAt

charCodeAt(String, Number): Number

Returns a Number, representing the unicode of the character at the specified index. This functions if the index is invalid

Transform

        
     
1
2
3
4
5
6
7
%dw 2.0
import * from dw::core::Strings
output application/json
---
{
  a: charCodeAt("baby", 2)
}
Output

        
     
1
2
3
{
  "a": 98
}