Utils
Function | Description | Link |
---|---|---|
createId | ||
throttle | Creates a throttled function that only invokes func at most once per every wait milliseconds. | |
debounce | Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked. | |
flow | Creates a function that returns the result of invoking the given functions with the this binding of the created function, where each successive invocation is supplied the return value of the previous. | |
get | Gets the value at path of object |
Function | Description | Link |
---|---|---|
deepCopyObject | Deep copy an object | |
hasOwnProperty | Shorthand method for Object.prototype.hasOwnProperty | |
getObjectDiff | Gets a simple recursive diff of two objects. Does not consider an entity schema or entity related logic. | |
getArrayChanges | Check if the compared array has changes. | |
cloneDeep | Creates recursively a clone of value. | |
merge | This method is like _.assign except that it recursively merges own and inherited enumerable string keyed properties of source objects into the destination object. | |
mergeWith | This method is like _.merge except that it accepts customizer which is invoked to produce the merged values of the destination and source properties. | |
deepMergeObject | Deep merge two objects | |
get | Gets the value at path of object | |
set | Sets the value at path of object | |
pick | Creates an object composed of the picked object properties. |
Function | Description |
---|---|
warn | General logging function which provides a unified style of log messages for developers. Please keep the log in mind. Messages will be displayed in the developer console when they're running the application in development mode. |
debug | The same as warn but instead of console.warn it uses console.error . |
Function | Description |
---|---|
currency | Converts a number to a formatted currency. Especially helpful for template filters. |
date | |
fileSize | Formats a number of bytes to a string with a unit |
md5 |
Function | Description |
---|---|
getScrollbarHeight | Returns the scrollbar height of an HTML element. |
getScrollbarWidth | Returns the scrollbar width of an HTML element. |
copyToClipboard | Uses the browser's copy function to copy a string |
Function | Description | Link |
---|---|---|
capitalizeString | Converts the first character of string to upper case and the remaining to lower case. | |
camelCase | Converts string to camel case. | |
kebabCase | Converts string to kebab case. | |
snakeCase | Converts string to snake case. | |
md5 | | |
isEmptyOrSpaces | Gets if the content of the string is really empty. This does also removes any whitespaces that might exist in the text. | |
isUrl | Checks if the provided value is a URL | |
isValidIp | |
Function | Description | Link |
---|---|---|
isObject | Checks if value is the language type of Object . (e.g. arrays, functions, objects, regexes, new Number(0) , and new String('') ) | |
isPlainObject | Checks if value is a plain object, that is, an object created by the Object constructor or one with a [[Prototype]] of null . | |
isEmpty | Checks if value is an empty object, collection, map, or set. | |
isRegExp | Checks if value is classified as a RegExp object. | |
isArray | Checks if value is classified as an Array object. | |
isFunction | Checks if value is classified as a Function object. | |
isDate | Checks if value is classified as a Date object. | |
isString | Checks if value is classified as a String primitive or object. | |
isBoolean | Checks if value is classified as a boolean primitive or object. | |
isEqual | Performs a deep comparison between two values to determine if they are equivalent. | |
isNumber | Checks if value is classified as a Number primitive or object. | |
isUndefined | Checks if value is undefined . |
Function | Description |
---|---|
afterSort | Sorts the elements by their after id property chain |
Function | Description | Link |
---|---|---|
flattenDeep | Recursively flattens array . | |
remove | Removes all elements from array that predicate returns truthy for and returns an array of the removed elements | |
slice | Creates a slice of array from start up to, but not including, end . | |
uniqBy | This method is like _.uniq except that it accepts iteratee which is invoked for each element in array to generate the criterion by which uniqueness is computed. |
Last modified 1mo ago