CFJS function listing

Here is the most complete list of ColdFusion functions available via both branches of CFJS.

Last updated: 10/15/2009
CFJS ver. 1.1.12


Array (5*)
ArrayAppend
ArrayAverage*
ArrayClear*
ArrayDeleteAt*
ArrayInsertAt*
ArrayLen
ArrayPrepend
ArraySort
ArraySum*
ArrayToList


*These functions are on my To-do list


Date/Time (8)
CreateDate
CreateDateTime
CreateTime
CreateODBCDate
CreateODBCDateTime
CreateODBCTime
DateDiff
DatePart


Decision (10)
IsArray
IsBoolean
IsDate
IsDefined
IsLeapYear
IsNumeric
IsSimpleValue
IsString
IsStruct
IsValid


Display and Formatting (4)
DateFormat
DecimalFormat
DollarFormat
TimeFormat


List (19)
ListAppend
ListChangeDelims
ListContains
ListContainsNoCase
ListDeleteAt
ListFind
ListFindNoCase
ListFirst
ListGetAt
ListInsertAt
ListLast
ListLen
ListPrepend
ListRest
ListSetAt
ListSort
ListToArray
ListValueCount
ListValueCountNoCase


Mathmatical (2)
Abs
Ceiling


String (25)
Compare
CompareNoCase
Find
FindNoCase
HTMLCodeFormat
HTMLEditFormat
Insert
LCase
Left
Len
LTrim
Mid
Pad
Param
RepeatString
Replace
ReplaceNoCase
Reverse
Right
Round**
RTrim
Trim
UCase
URLDecode
URLEncodedFormat


**Round works slightly different in this implementation verses ColdFusion. ColdFusion only rounds up to the nearest whole number. The CFJS version of Round() allows an optional argument for the number of decimal places of precision.

Structure (3)***
StructKeyArray
StructKeyList
StructKeyExists


***
In JavaScript what a CF programmer would call a structure is called a hash. A hash is also an associative array. Both are objects, and both can be accessed the same way that they are accessed in ColdFusion (using dot or array notation). Please check out this excellent page from Peter-Paul Koch (QuirksMode.org) for a much more detailed explaination. :o)