Use this library to avoid the use of unscalable if statements
npm install avoifUse this library to avoid the use of unscalable if statements
``javascript
const { Avoif } = require('avoif');
const avoif = new Avoif({param: 'status', operator: '==', value: 'publish'}, () => 'Hi from first Node');
avoif.set({param: 'status', operator: '==', value: 'unpublish'}, () => 'Hi from second Node');
const callback = avoif.get({status: 'publish'})
``
Please make sure to update tests as appropriate.