Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
{
key: 'identity',
group: 'Base',
help: 'Id accessor.',
description: `
define identity accessor, if string given,
will use \`node[value]\`,
if function given, it will be invoked
for each node and will receive the node as
first argument, it must return the node
identity (string).
`,
type: 'string | Function',
required: false,
defaultValue: defaults.identity,
},
{
key: 'value',
group: 'Base',
help: 'Value accessor',
description: `
define value accessor, if string given,
will use \`node[value]\`,
if function given, it will be invoked
for each node and will receive the node as
first argument, it must return the node
value (number).
`,
type: 'string | Function',
required: false,
defaultValue: defaults.value,