bruno/renderer/utils/tabs/index.js
2022-03-18 04:43:35 +05:30

10 lines
223 B
JavaScript

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);
};