@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
11 lines (10 loc) • 320 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isItemAllowed = void 0;
const isItemAllowed = (itemId, items) => {
if (items?.allow?.length) {
return items.allow.includes(itemId);
}
return !items?.deny?.includes(itemId);
};
exports.isItemAllowed = isItemAllowed;