Function | Description |
---|
fns.ifNull(cond, 'truthValue', 'falseValue') | Returns truthValue when 'cond' is evaluated to either null or undefined. Otherwise, it returns falseValue. |
fns.ifNotNull(cond, 'truthValue', 'falseValue') | Returns truthValue when 'cond' is evaluated to non-null or a defined value. Otherwise, it returns falseValue. |
fns.concatList(coll, expr, separator) | Concatenates the elements of the collection 'coll' and joins them using the input 'separator'. e.g. fns.concatList(persons, "\'firstName\' + ' ' + \'lastName\'", ",") yields Virat Kohli, Dhanraj Pillay, Atul Bedade |
fns.concat(varargs) | Concatenates input arguments using the separator ' ' |
fns.minValue(coll, expr) | Returns the min value of the 'expr' in the input collection 'coll' |
fns.toDateStr(dateObj, [fmt]) | Returns date string in locale format or requested format 'fmt' |
fns.toDateTimeStr(dateObj, [fmt]) | Returns date-time string in locale format or requested format 'fmt' |
fns.now() fns.currentTime() | Returns current time in number of milliseconds elapsed since Epoch. |
fns.dateDiffInYears(d1, d2) | Returns the number of completed years between d1 and d2. |
fns.ageInYears(d1) | Convenience function, which is equivalent to fns.dateDiffInYears(d1, fns.now()) |
fns.dateDiffInDays(d1, d2) | Returns the number of completed days between d1 and d2. |
fns.dateDiffInMinutes(d1, d2) | Returns the number of minutes elapsed between d1 and d2 where d1 < d2 |
fns.dateDiffInSeconds(d1, d2) | Returns the number of seconds elapsed between d1 and d2 where d1 < d2 |
fns.split(str, regex) | Returns an array of substrings that are delimited by the regex in the input string. |
fns.join(strArray, separator) | Returns concatenation of array of substrings delimited by the separator. |