Changes

Jump to navigation Jump to search
no edit summary
Line 22: Line 22:  
{
 
{
 
let instance_of_claims = dive( obj, INSTANCE_OF_PROPERTY );
 
let instance_of_claims = dive( obj, INSTANCE_OF_PROPERTY );
for( var i = 0; i < instance_of_claims.length; i++ ) // retrieve each 'instance of' claim to check it
+
if (instance_of_claims.some(dive( instance_of_claims[i] , 'mainsnak.datavalue.value')['numeric-id'] === DATA_CONTROLLER_ITEM_ID))
 
{
 
{
let the_thing_it_is_an_instance_of = dive( instance_of_claims[i] , 'mainsnak.datavalue.value');
+
  foundThatThisIsAnInstanceOfDataController = true; break;
if (the_thing_it_is_an_instance_of['numeric-id'] === DATA_CONTROLLER_ITEM_ID )
  −
{
  −
  foundThatThisIsAnInstanceOfDataController = true; break;
  −
}
   
}
 
}
 
}
 
}
editors
3,524

edits

Navigation menu