@sumaris-net/ngx-components 1.10.6 → 1.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sumaris-net.ngx-components.umd.js +4 -0
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/services/model/entity.model.js +5 -1
- package/fesm2015/sumaris-net.ngx-components.js +4 -0
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/entity.model.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -10416,6 +10416,10 @@
|
|
|
10416
10416
|
function EntityUtils() {
|
|
10417
10417
|
}
|
|
10418
10418
|
// Check that the object has a NOT nil attribute (ID by default)
|
|
10419
|
+
EntityUtils.isEntity = function (obj) {
|
|
10420
|
+
return isNotNil(obj.__typename) && (typeof obj.fromObject === 'function') && (typeof obj.asObject === 'function');
|
|
10421
|
+
};
|
|
10422
|
+
// Check that the object has a NOT nil attribute (ID by default)
|
|
10419
10423
|
EntityUtils.isNotEmpty = function (obj, checkedAttribute) {
|
|
10420
10424
|
return !!obj && obj[checkedAttribute] !== null && obj[checkedAttribute] !== undefined;
|
|
10421
10425
|
};
|