MCPcopy
hub / github.com/redis/node-redis / pushVariadic

Method pushVariadic

packages/client/lib/client/parser.ts:97–105  ·  view source on GitHub ↗
(vals: RedisVariadicArgument)

Source from the content-addressed store, hash-verified

95 };
96
97 pushVariadic(vals: RedisVariadicArgument) {
98 if (Array.isArray(vals)) {
99 for (const val of vals) {
100 this.push(val);
101 }
102 } else {
103 this.push(vals);
104 }
105 }
106
107 pushVariadicWithLength(vals: RedisVariadicArgument) {
108 if (Array.isArray(vals)) {

Callers 15

#createScriptCommandMethod · 0.95
parser.spec.tsFile · 0.80
parseCommandFunction · 0.80
parseCommandFunction · 0.80
parseCommandFunction · 0.80
parseCommandFunction · 0.80
parseCommandFunction · 0.80
parseCommandFunction · 0.80
parseCommandFunction · 0.80
parseCommandFunction · 0.80

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected