1 | const map = require('lodash/map');
|
2 | const compact = require('lodash/compact');
|
3 |
|
4 | const instRegistry = require('./instRegistry');
|
5 |
|
6 | const editInstructions = (func) => {
|
7 | instRegistry.replaceAll(compact(map(instRegistry.getAll(), func)));
|
8 | };
|
9 |
|
10 | module.exports = editInstructions;
|