Skip to content

Commit 81f7e4d

Browse files
authored
Merge pull request #1730 from scallahan-dev/patch-9
Update structEquals JSON with member function and example
2 parents 709689c + b9a9149 commit 81f7e4d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

data/en/structequals.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name":"structEquals",
33
"type":"function",
44
"syntax":"structEquals(struct1, struct2)",
5+
"member": "struct1.equals(struct2)",
56
"returns":"boolean",
67
"related":[],
78
"description":"Performs a deep comparison of two structures to see if they represent the same values",
@@ -19,8 +20,15 @@
1920
"title":"Append options to config struct (without overwrite flag)",
2021
"description":"",
2122
"code":"config1 = {a:0, b:0};\nconfig2 = {a:0, b:1};\nwriteOutput( structEquals(config1, config2) );",
22-
"result":"NO",
23+
"result":"false",
2324
"runnable": false
25+
},
26+
{
27+
"title":"Member function comparison of two structs",
28+
"description":"",
29+
"code":"config1 = {a:0, b:0};\nconfig2 = {a:0, b:1};\nwriteOutput( config1.equals(config2) );",
30+
"result":"false",
31+
"runnable": true
2432
}
2533
]
2634
}

0 commit comments

Comments
 (0)