core-functions
Advanced tools
Changelog
2.0.13
getPropertyValue
function to objects.js
moduleChangelog
2.0.12
app-errors.js
module to export getHttpStatus
functionChangelog
2.0.11
app-errors.js
module's AppError
constructor:
objects.js
module's copy
and merge
functions:
Changelog
2.0.10
strings.js
module's stringify
function:
toString
methods, with square brackets (to indicate
that the property does not contain just a string error message)Changelog
2.0.9
strings.js
module's stringify
function:
toJSON
methods (if any) by default (prior versions did NOT use them at all)avoidToJSONMethods
argument to determine whether to avoid using objects' toJSON methods or not (default)JSON.stringify
name
as the first property, followed by its message
as the second property, followed by the rest of its
enumerable properties (excluding its stack
property)[Reference: {name}]
, whereas the prior version marked them incorrectly as [Circular: {name}]
[Circular: {name}]
Changelog
2.0.8
strings.js
module's stringify
function:
JSON.stringify
useToStringForErrors
argument to convert Errors using their toString
methods (if true) or
as objects (if false), but with their message
and name
(but not stack
) properties visible in the resultquoteStrings
argument to return given string values surrounded with double-quotes (if true)Changelog
2.0.7
objects.js
:
merge
functionChangelog
2.0.6
objects.js
:
merge
function to handle circular, non-Directed Acyclic Graphs of objectscopy
function also able to handle non-DAGsChangelog
2.0.4
strings.js
:
nthIndexOf
function that finds index of nth occurrence of a search value in a string