dist/entt.js
function getClassExtensions(classes) {

  // Extract property definitions from all inherited classes' static ".props" property
  var extensions = _lodash2.default.reduceRight(classes, function (extensions, current) {
    var extensionsArray = current.includes ? _lodash2.default.isArray(current.includes) ? current.includes : [current.includes] : [];
    _lodash2.default.forEach(extensionsArray, function (extension) {
      extensions.push(extension);
    });
    return extensions;
  }, []);

  // Return extracted properties
  return extensions;
}
function getClassExtensions(classes) {

  // Extract property definitions from all inherited classes' static ".props" property
  var extensions = _lodash2.default.reduceRight(classes, function (extensions, current) {
    var extensionsArray = current.includes ? _lodash2.default.isArray(current.includes) ? current.includes : [current.includes] : [];
    _lodash2.default.forEach(extensionsArray, function (extension) {
      extensions.push(extension);
    });
    return extensions;
  }, []);

  // Return extracted properties
  return extensions;
}
function getClassExtensions ( classes ) { // Extract property definitions from all inherited classes' static ".props" property var extensions = _lodash2 . default . reduceRight ( classes , function ( extensions , current ) { var extensionsArray = current . includes ? _lodash2 . default . isArray ( current . includes ) ? current . includes : [ current . includes ] : [ ] ; _lodash2 . default . forEach ( extensionsArray , function ( extension ) { extensions . push ( extension ) ; } ) ; return extensions ; } , [ ] ) ; // Return extracted properties return extensions ; }
Gets class extensions by traversing and merging static ".includes" property of the instance's class and it's inherited classes
@param {any} classes Array of inherited from classes
@returns {any} Array of extensions applied to the class
Gets class extensions by traversing and merging static . includes property of the instance s class and it s inherited classes