@creejs/commons-lang 2.1.22 → 2.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1499,6 +1499,11 @@ function substringsBetween (str, startMarker, endMarker) {
1499
1499
  * @returns {string} The string representation of the value
1500
1500
  */
1501
1501
  function safeToString (value) {
1502
+ if (value === null) {
1503
+ return 'null'
1504
+ } else if (value === undefined) {
1505
+ return 'undefined'
1506
+ }
1502
1507
  let valueStr;
1503
1508
  try {
1504
1509
  valueStr = JSON.stringify(value);