dist/entt/extensions.js
function getEntityExtensions(entity) {
      // Check if entity passed as instance or class
      if (entity instanceof _entt2.default) {
        // Return property configuration from instance
        return _cache.ConfigurationCache.get(entity).extensions;
      } else if (_lodash2.default.isFunction(entity) && entity.prototype instanceof _entt2.default) {
        // Return property configuration from class
        return _cache.ConfigurationCache.get(new entity()).extensions;
      }
    }
function getEntityExtensions(entity) {
      // Check if entity passed as instance or class
      if (entity instanceof _entt2.default) {
        // Return property configuration from instance
        return _cache.ConfigurationCache.get(entity).extensions;
      } else if (_lodash2.default.isFunction(entity) && entity.prototype instanceof _entt2.default) {
        // Return property configuration from class
        return _cache.ConfigurationCache.get(new entity()).extensions;
      }
    }
function getEntityExtensions ( entity ) { // Check if entity passed as instance or class if ( entity instanceof _entt2 . default ) { // Return property configuration from instance return _cache . ConfigurationCache . get ( entity ) . extensions ; } else if ( _lodash2 . default . isFunction ( entity ) && entity . prototype instanceof _entt2 . default ) { // Return property configuration from class return _cache . ConfigurationCache . get ( new entity ( ) ) . extensions ; } }
Retrieves extensions for an Entity instance or class
@static
@param {any} entity Entity instance or EnTT extending class to get extensions for
@returns {any} EnTT Extensions
@memberof Extensions
Retrieves extensions for an Entity instance or class