- New function added to the data-comparison module:
referencedClone
.
- New function added to ancillaries module:
dateBasedRandom
.
- New functions added to the tools module:
escapeRegExp
,isRegExpPattern
andregExpString
.
- Replaced the
regExpFromString
function of the tools module for an improvedregExpTemplate
function. - Added the
flattenObject
function to the dataComparison module.
- Added the
permute
andunflatten
functions to the Array section.
- Added the
debounce
andthrottle
functions to the DOM section.
- Added the
regExpFromString
,parseJson
,stringifyJson
andgenerateEnums
functions to the tools section.
- Added DOM functions inspired from the work of Dave Gray.
- Arrays
- shuffleArray - Shuffle an array of numbers
- DOM
- acc - add CSS class
- dce - delete child elements
- sui - sanitive untrusted/user input
- Data Comparison
- isBase - confirms if the given datum has a value of null or undefined.
- isObject - confirms if the given datum is an Object.
- Arrays
- Tools
- SIMD - refined.
- Range methods
rangeGenerator
added.
- Array methods
batchBy.size
andbatchBy.number
added.
simd
added to tools.extractProperty
removed from dataComparison (duplicate of tools/lens
).
- DOM manipulation functions added.
- Clipboard functions
copy
andpaste
added. - Exercise function
consoleGroup
added.
- DOM manipulation functions inspired but Kyle Cook's YouTube video Stop Wasting Your Time - Use These 16 JS Utility Functions Instead on his Web Dev Simplified channel.
- Added
isEmptyObject
function to Data Comparison group. - Added Ancillary functions
random
andwebStore
.
- Added the
mapGetter
function to the Ancillaries group.
- Added the
adhocArray
function to the Exercising group.
- Added the absentee
sum
function.
- Enhance the
enumerate
function to support capitalisation of snake and sentence|title case keys.
- Added Array
groupBy
function.
- Added
enumerate
to generate an object to support Enumeration in JS. - Removed
caseConverter
as it is of very little utility.
- Added
compose
to combine a list of monadic (single parameter) functions into a single new function.
- Added
duplicateObject
to create an in-depth copy of an object including properties of data types not supported by JSON.
- Added
extractProperty
to extract objects/values from a containing object given a path of property names. - Refinement of the
compareObjectByProperty
method.
- Added
compareObjectByProperty
to generate an object comparator function based on a given property name.
- Added
cloneObject
to enable deep duplication of objects including data types not supported by JSON.
- Added
transposeArray
to pivot the rows with columns of a 2D array.
- Added
reconcileArray
to update an array based on a second without losing reference.
- Added
memoise
andcurry
functions.
- Added
sleep
function.
- Revised
unionArrays
function.
- Applied patch to address the report by Snyk of a vulnerability in the y18n package version 4.0.0.
- New function
replaceArray
added to replace the content of an array in place, without reassignment.
- New function
dataType
added to report the type of data held in a variable as a string.
- This library was originally developed as an ES Module but had to be converted to Common.JS to make it compatible and testable with Jest. Following the advice given in Valentino Gagliardi's article, I have been able to to convert it back to an ES Module; making it usable by Node and in the web browser.