MCPcopy
hub / github.com/hokein/electron-sample-apps / isEmptyDataObject

Function isEmptyDataObject

desktop-capture/jquery.js:2016–2029  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

2014
2015// checks a cache object for emptiness
2016function isEmptyDataObject( obj ) {
2017 for ( var name in obj ) {
2018
2019 // if the public data object is empty, the private is still empty
2020 if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
2021 continue;
2022 }
2023 if ( name !== "toJSON" ) {
2024 return false;
2025 }
2026 }
2027
2028 return true;
2029}
2030
2031
2032

Callers 1

jquery.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected