MCPcopy Create free account
hub / github.com/actionhero/node-resque / arrayify

Function arrayify

src/core/queue.ts:32–38  ·  view source on GitHub ↗
(o: T)

Source from the content-addressed store, hash-verified

30};
31
32function arrayify<T>(o: T): T[] {
33 if (Array.isArray(o)) {
34 return o;
35 } else {
36 return [o];
37 }
38}
39
40export declare interface Queue {
41 connection: Connection;

Callers 5

enqueueMethod · 0.85
enqueueAtMethod · 0.85
delMethod · 0.85
delDelayedMethod · 0.85
scheduledAtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected