MCPcopy Create free account
hub / github.com/unconed/TermKit / oneOrMany

Function oneOrMany

HTML/termkit.js:57–59  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

55}
56
57function oneOrMany(object) {
58 return (typeof object == 'object' && object.constructor == [].constructor) ? object : [ object ];
59}
60
61///////////////////////////////////////////////////////////////////////////////
62

Callers 3

container.jsFile · 0.85
outputfactory.jsFile · 0.85
outputnode.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected