mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-02-13 11:27:23 +00:00
11 lines
243 B
JavaScript
11 lines
243 B
JavaScript
import _ from 'lodash';
|
|
import isSameCommand from './isSameCommand';
|
|
|
|
function findCommand(commands, options) {
|
|
return _.findLast(commands, (command) => {
|
|
return isSameCommand(command.body, options);
|
|
});
|
|
}
|
|
|
|
export default findCommand;
|