pub fn map_obj<F>(object: &Value, deep: bool, mapper: F) -> ValueExpand description
Map over the keys and values of object.
mapper is called with each (key, value) and returns a MapEntry. With deep, the
mapper is also applied to nested objects (and to objects inside arrays). Keys mapped to
__proto__ are dropped, matching the reference.
Non-object input is returned unchanged (the JavaScript original instead throws; this is the lenient Rust equivalent).