bruno/renderer/utils/tabs/index.js

10 lines
223 B
JavaScript
Raw Normal View History

import find from 'lodash/find';
export const isItemARequest = (item) => {
return item.hasOwnProperty('request');
};
export const itemIsOpenedInTabs = (item, tabs) => {
return find(tabs, (t) => t.uid === item.uid);
};