Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getLinkedObjectPropertyRaw(property, subject, linkedRenderStore) {
const props = linkedRenderStore.tryEntity(subject);
if (Array.isArray(property)) {
for (let i = 0; i < property.length; i++) {
const values = allRDFPropertyTriples(props, property[i], true);
if (typeof values !== 'undefined') return values;
}
return undefined;
}
return allRDFPropertyTriples(props, property, true);
}
export function getLinkedObjectPropertyRaw(property, subject, linkedRenderStore) {
const props = linkedRenderStore.tryEntity(subject);
if (Array.isArray(property)) {
for (let i = 0; i < property.length; i++) {
const values = allRDFPropertyTriples(props, property[i], true);
if (typeof values !== 'undefined') return values;
}
return undefined;
}
return allRDFPropertyTriples(props, property, true);
}