components.js
function canInitialize(dependencies, initialized) {
  return !dependencies || 
    dependencies.length === 0 || 
    dependencies.every(function (name) {
      return !!initialized[name];
    });
}
function canInitialize(dependencies, initialized) {
  return !dependencies || 
    dependencies.length === 0 || 
    dependencies.every(function (name) {
      return !!initialized[name];
    });
}
function canInitialize ( dependencies , initialized ) { return ! dependencies || dependencies . length === 0 || dependencies . every ( function ( name ) { return ! ! initialized [ name ] ; } ) ; }
check if all dependencies for a component have initialized
check if all dependencies for a component have initialized