@node-red/util 4.0.0-beta.2 → 4.0.0-beta.3
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.
- package/lib/util.js +2 -2
- package/package.json +1 -1
package/lib/util.js
CHANGED
|
@@ -27,7 +27,7 @@ const util = require("util");
|
|
|
27
27
|
const { hasOwnProperty } = Object.prototype;
|
|
28
28
|
const log = require("./log")
|
|
29
29
|
/**
|
|
30
|
-
* Safely returns the object
|
|
30
|
+
* Safely returns the object constructor name.
|
|
31
31
|
* @return {String} the name of the object constructor if it exists, empty string otherwise.
|
|
32
32
|
*/
|
|
33
33
|
function constructorName(obj) {
|
|
@@ -37,7 +37,7 @@ function constructorName(obj) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Generates a
|
|
40
|
+
* Generates a pseudo-unique-random id.
|
|
41
41
|
* @return {String} a random-ish id
|
|
42
42
|
* @memberof @node-red/util_util
|
|
43
43
|
*/
|