Javascript library of ColdFusion functions
JavascriptI often find myself working in Javascript and thinking "Man I wish there was a JS equivalent of the CFML xyz() method!" Tonight was one of those nights as I was about to make my own ListAppend() method. Instead, I came across a Javascript library that is collection of ColdFusion functions ported into Javascript, written by a guy named Randy Anderson. If you are ever looking for any of the functions listed below, go check out Randy's Javscript Library of ColdFusion Functions.
Here is the list of functions included in the library:
Abs(number)
ArrayAppend(array, value)
ArrayLen(array)
ArraySort(array, sort_type [, sort_order ])
ArrayToList(array [, delimiter ])
Ceiling(number)
Compare(string1, string2)
CompareNoCase(string1, string2)
DateDiff(datepart, date1, date2)
DecimalFormat(number)
DollarFormat(number)
Find(substring, string)
FindNoCase(substring, string)
Insert(substring, string, position)
IsDate(date)
IsNumeric(string)
LCase(string)
Left(string, count)
Len(sting)
ListAppend(list, value, [, delimiters])
ListDeleteAt(list, position [, delimiters ])
ListFind(list, value [, delimiters ]))
ListFindNoCase(list, value [, delimiters ]))
ListGetAt(list, position [, delimiters ]))
ListLen(list [, delimiters])
ListToArray(list [, delimiters])
LTrim(string)
Mid(string, start, count)
Replace(string, substring1, substring2 [, scope ])
ReplaceNoCase(string, substring1, substring2 [, scope ])
Reverse(string)
Right(string, count)
Round(number [, number of decimal places])
RTrim(string)
Trim(string)
UCase(string)
URLDecode(string)
URLEncodedFormat(string)





Loading....