@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.
@@ -1501,6 +1501,11 @@
1501
1501
  * @returns {string} The string representation of the value
1502
1502
  */
1503
1503
  function safeToString (value) {
1504
+ if (value === null) {
1505
+ return 'null'
1506
+ } else if (value === undefined) {
1507
+ return 'undefined'
1508
+ }
1504
1509
  let valueStr;
1505
1510
  try {
1506
1511
  valueStr = JSON.stringify(value);