Utils

randomInteger(min max) get random number between min and max values
addDays(date, count) add count days to current date
getDateByFormat(date, format)
convert date with specified format
Available formats:
yyyy-mm-dd
yyyymmdd
yyyy/mm/dd
yyyy-mm-dd hh:mm
hh:mm
dd.mm.yyyy
getDaysBetweenDates(dt1, dt2) get days count between two dates
closest(array, num) get closest value num from array
insertAfter(elem, refElem) Insert elem after specified refElem
isCustomElement(element) Check if specified element is custom element
sorting(array, params, reverse) Sort specified array with params(type: string, id: string)
type - type of sotring, id - prop for sorting
reverse - opposite sorting