MCPcopy Index your code
hub / github.com/walterhiggins/ScriptCraft / argsToArray

Function argsToArray

src/main/js/lib/console.js:39–45  ·  view source on GitHub ↗

## console global variable ScriptCraft provides a `console` global variable with the followng methods... * log() * info() * warn() * error() The ScriptCraft console methods work like the [Web API implementation][webcons]. ### Example console.log('Hello %s', 'world'); Basic variable

(args)

Source from the content-addressed store, hash-verified

37
38***/
39function argsToArray(args) {
40 var result = [];
41 for (var i = 0; i < args.length; i++) {
42 result.push(args[i]);
43 }
44 return result;
45}
46function consMsg(params) {
47 var args = argsToArray(params);
48 if (args.length > 1) {

Callers 1

consMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected