objectContains
- Given an object (or array) and a needle, search for that needle within the object's values.
isNonEmptyString
- A newtrim
option (default:false
) can be provided to allow the string to be trimmed before testing.
validateOrFallback
- Given a value and validation function, ensure the value matches, or return the provided fallback.
clamp
- Given a value, minimum and maximum, ensure the returned value is between the extremes.
chartColours
,extendedColours
andbrightColours
now have dark mode colours.
getNextColour
- Can now be provided with an alternate set of colours.extendedColours
andbrightColours
- New options for chart colours.
getNextIndex
- Will now handle starting indexes outside of the provided array, if wrap is enabled, by wrapping as necessary.
getNextColour
- Given an index, retrieve the next chart colour in the list of available colours.
runComponentMethod
- Updated the code to check for the existence of the method differently, avoiding a Vue warning around enumerating component properties.
runComponentMethod
- Run a method from a component (or object) if it exists.
chartColours
- An array of six accessible colours for use in charts.
deepMerge
- Fixes an issue where if objects shared a key, but the types of their values were different, no replacement would be made.
isFunction
- Determines if the given variable is a function
isNonEmptySlot
- Determine if a slot is empty by checking its content for validity
arrayLength
- Determines the number of items in the given array, or 0 if the input is not an arrayhead
- Get the first element in an arraytail
- Get the last element in an arrayfirstDefined
- Get the first non-undefined element in an arraylastDefined
- Get the last non-undefined element in an arraypluck
- Turn an array of objects into an array of the value of a property from those objects
deepCopy
- Recursively copy an object or arraydeepMerge
- Recursively merge two or more objectsget
- Get an object's property value at a given pathisObject
- Determines if the given input is an object, excluding arrays and nullpick
- Returns an object containing only the specified properties
getNextIndex
- Given a current index and array, determine the next available indexisNonEmptyArray
- Determines that the given input is both an array and has at least one itempluck
- Generate an array containing the value of the given property of each of the input objects.
getFriendlyDisplay
- Convert a given variable into a human-readable representation of its type
isNumber
- Determines that the given input is a number and not NaN
isNonEmptyObject
- Determines that the given input is both an object (and not null, or an array), and has at least one property
isNonEmptyString
- Determines that the given input is both a string and has at least one character