@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.
@@ -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
  };