We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17610e9 commit fa2df49Copy full SHA for fa2df49
dsc_lib/src/functions/empty.rs
@@ -41,7 +41,7 @@ impl Function for Empty {
41
}
42
43
if let Some(object) = args[0].as_object() {
44
- return Ok(Value::Bool(object.keys().len() == 0));
+ return Ok(Value::Bool(object.is_empty()));
45
46
47
if let Some(string) = args[0].as_str() {
0 commit comments