Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function resolveName(value) {
// create schema to get entry name from internal properties
const key = Array.from(props.schema.key);
key[key.length - 1] = `$${key[key.length - 1]}_name`;
const nameSchema = { ...props.schema, key };
return getValue(props.properties, nameSchema) || value;
}