MCPcopy Index your code
hub / github.com/eventuallyconsultant/codegenr / is_json_empty

Function is_json_empty

codegenr/src/helpers/strings.rs:744–750  ·  view source on GitHub ↗
(param0: &Value)

Source from the content-addressed store, hash-verified

742// ) -> handlebars::HelperResult {
743// let value = h.param(0).ok_or_else(|| RenderError::new("Param not found for helper \"each\""))?;
744// let j_path = h.get_param_as_str(1).unwrap_or("");
745
746// let template = h.template();
747
748// match template {
749// Some(t) => match *value.value() {
750// Value::Array(ref list) if !list.is_empty() || (list.is_empty() && h.inverse().is_none()) => {
751// let mut to_sort = list.clone();
752
753// to_sort.sort_by(|a, b| {

Callers 1

call_innerMethod · 0.85

Calls 1

Tested by

no test coverage detected