Skip to content

Advanced kitsune functions

Here are some of the functions that kitsune supports:

Advanced Kitsune FunctionsDescription
urlencode()This function will help in encoding url to proper format which browser understands.
indexOf('word')This function returns the position of the first occurrence of a specified value in a string.
replace('/','-')This function will replace the specified value with the new value in the entire string.
length()Length would give length of the object. The object can be string, array or list.
subStr(0, 10)This function would be operated only on string. This will return substring of a string from index 0 to 10.
subStr(10)This function would be operated only on string. This will return substring of a string from index 10 to length of string.
toLower()This function works on string. This function will convert entire string to lowercase.
toUpper()This function works on string. This function will convert entire string to uppercase.