mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-27 15:54:59 +00:00
Fix object loging
This commit is contained in:
parent
5e0d7ef02d
commit
fb1f58cb57
1 changed files with 5 additions and 6 deletions
|
@ -134,15 +134,14 @@
|
||||||
* @retrun {Boolean}
|
* @retrun {Boolean}
|
||||||
*/
|
*/
|
||||||
var areAllStringOrNumber = function (arr) {
|
var areAllStringOrNumber = function (arr) {
|
||||||
|
var result = true;
|
||||||
arr.forEach(function (elem) {
|
arr.forEach(function (elem) {
|
||||||
console.log(typeof elem);
|
if (!(typeof elem === 'string' || typeof elem === 'number')) {
|
||||||
if (typeof elem !== 'string' && typeof elem !== 'number') {
|
result = false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -404,7 +403,7 @@
|
||||||
//if objects or array present
|
//if objects or array present
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
var delimiter = '\n\n',
|
var delimiter = '\n',
|
||||||
multiLines = false; //if the log need multiples lines (ie. object, array)
|
multiLines = false; //if the log need multiples lines (ie. object, array)
|
||||||
|
|
||||||
//Process arg one by one
|
//Process arg one by one
|
||||||
|
|
Loading…
Add table
Reference in a new issue