UNPKG

takin

Version:

Front end engineering base toolchain and scaffold

15 lines 364 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.objectEnum = void 0; /** * 通过数组创建对象 enum * @param t - 静态数组 */ function objectEnum(t) { return t.reduce(function (res, v) { res[v] = v; return res; }, {}); } exports.objectEnum = objectEnum; //# sourceMappingURL=objectEnum.js.map