UNPKG

recoder-code

Version:

Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities

18 lines (17 loc) 490 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformArguments = exports.FIRST_KEY_INDEX = void 0; exports.FIRST_KEY_INDEX = 1; function transformArguments(toSet) { const args = ['MSET']; if (Array.isArray(toSet)) { args.push(...toSet.flat()); } else { for (const key of Object.keys(toSet)) { args.push(key, toSet[key]); } } return args; } exports.transformArguments = transformArguments;