UNPKG

black-horse-cli

Version:

13 lines (10 loc) 469 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPropsSlot = getPropsSlot; function getPropsSlot(slots, props) { var _props$prop, _slots$prop; var prop = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'default'; return (_props$prop = props[prop]) !== null && _props$prop !== void 0 ? _props$prop : (_slots$prop = slots[prop]) === null || _slots$prop === void 0 ? void 0 : _slots$prop.call(slots); }