mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-04 21:22:07 +00:00
added set array and set object nodes
This commit is contained in:
@@ -3,10 +3,21 @@
|
||||
var LiteGraph = global.LiteGraph;
|
||||
|
||||
function toString(a) {
|
||||
if(a && a.constructor === Object)
|
||||
{
|
||||
try
|
||||
{
|
||||
return JSON.stringify(a);
|
||||
}
|
||||
catch (err)
|
||||
{
|
||||
return String(a);
|
||||
}
|
||||
}
|
||||
return String(a);
|
||||
}
|
||||
|
||||
LiteGraph.wrapFunctionAsNode("string/toString", compare, [""], "String");
|
||||
LiteGraph.wrapFunctionAsNode("string/toString", toString, [""], "String");
|
||||
|
||||
function compare(a, b) {
|
||||
return a == b;
|
||||
|
||||
Reference in New Issue
Block a user