UNPKG

redis-typescript

Version:

redis client for node.js with typescript and async

22 lines 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function Mixins(base, froms) { class Mixin extends base { } froms.forEach((from) => { Reflect.ownKeys(from.prototype).forEach((name) => { Mixin.prototype[name] = from.prototype[name]; }); }); return Mixin; } exports.Mixins = Mixins; function Array2Object(array) { const obj = {}; for (let i = 0, len = array.length; i < len; i++) { obj[array[i]] = array[++i]; } return obj; } exports.Array2Object = Array2Object; //# sourceMappingURL=tools.js.map