UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

13 lines (11 loc) 291 B
function checkValidReplaceList(list) { var fail = list === null || list === void 0 ? void 0 : list.find(function (item) { return item.length !== 2; }); if (fail) { throw new Error('替换数组不合法:', { cause: fail }); } } export { checkValidReplaceList };