-
Notifications
You must be signed in to change notification settings - Fork 5
Retina basic functions
Tobias Paczian edited this page Mar 19, 2018
·
12 revisions
Retina.keys(object, noFunctions)
Returns an array of keys of object. If noFunctions is true, functions will be omitted in the array. This function only iterates over the topmost object level.
Retina.values(object)
Returns an array of values of object. This function only iterates over the topmost object level.
Retina.traverse(object, function)
Calls function on each scalar value of an object. This will traverse the entire object hierarchy.
Retina.propSort(property, direction)
This can be used as a sorting function in array.sort(). The array must contain objects which will be sorted by the property property. Default sort order is alphabetically ascending. Setting direction to true will sort descending.
- mouseCoords
- capitalize
- wait
- dateString
- uuidv4
- findPos
- numSort
- sortDesc
- stripHTML
- svg2png
- Base64
- cgiParam
- reverseComplement
- log10
- niceNum
- niceScale
- d2h
- h2d
- md5