@codana/utils
v0.0.10
Published
A collection of utility functions
Downloads
481
Readme
@codana/utils
A package containing utility functions we use across multiple projects.
This package includes:
@codana/utils/string
getInitialsFromName
- returns initials from a name
@codana/utils/object
objectKeys
- returns an array of keys from an object and inferred type
@codana/utils/os
getOperatingSystem
- returns the current operating system in string format
@codana/utils/color
colorToRgb
- converts a color-input to rgb with opacity
@codana/utils/array
sortAlphabeticallyByProp
- sorts an array of objects alphabetically by a given string-type proparraysAreEqual
- checks whether 2 given arrays are equal