UNPKG

t-comm

Version:

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

17 lines (13 loc) 391 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); 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 }); } } exports.checkValidReplaceList = checkValidReplaceList;