Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
visitValuesAndWrapStringValues_(value) {
let acceptArray = (val, key, reference) =>
(reference[key] = this.visitValuesAndWrapStringValues_(val));
let acceptObject = (val, key, reference) =>
(reference[key] = this.visitValuesAndWrapStringValues_(val));
this.visit_(value, acceptArray, acceptObject);
if (core.isObject(value)) {
let type = this.getValueType_(value.value);
if (type === Datatable.TYPES.STRING) {
value.value = Soy.toIncDom(value.value);
}
}
return value;
}
}
data.items = this.items.map(item => Soy.toIncDom(item));
return data;