Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const initBatch = (options = {}) => {
const opts = _initOpt(options, 'op.batch');
const buttons = [];
if (opts['batch.edit']) {
buttons.push(_initButton(opts, 'batch.edit', 'batchEdit'));
}
if (opts['batch.delete']) {
buttons.push(_initButton(opts, 'batch.delete', 'batchDelete'));
}
return buttons;
};
const initExtra = (options = {}) => {