mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(util) add logArray
This commit is contained in:
parent
9332c5eb6c
commit
8324728800
2 changed files with 16 additions and 0 deletions
|
|
@ -104,6 +104,8 @@ getJSONfromFileTable.
|
|||
|
||||
* feature(util) call log with any count of params
|
||||
|
||||
* feature(util) add logArray
|
||||
|
||||
|
||||
2012.04.22, v0.2.0
|
||||
|
||||
|
|
|
|||
14
lib/util.js
14
lib/util.js
|
|
@ -368,6 +368,20 @@ Util = exports || {};
|
|||
return lJoin(' ');
|
||||
};
|
||||
|
||||
/**
|
||||
* log array of elements
|
||||
* @param pArray
|
||||
*/
|
||||
Util.logArray = function(pArray) {
|
||||
var i, n;
|
||||
|
||||
if (pArray)
|
||||
for (i = 0, n = pArray.length; i < n; i++)
|
||||
Util.log( pArray[i] );
|
||||
|
||||
return pArray;
|
||||
};
|
||||
|
||||
/**
|
||||
* function log pArg if it's not empty
|
||||
* @param pArg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue