mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +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}
|
||||
*/
|
||||
var areAllStringOrNumber = function (arr) {
|
||||
|
||||
var result = true;
|
||||
arr.forEach(function (elem) {
|
||||
console.log(typeof elem);
|
||||
if (typeof elem !== 'string' && typeof elem !== 'number') {
|
||||
return false;
|
||||
if (!(typeof elem === 'string' || typeof elem === 'number')) {
|
||||
result = false;
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
return result;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -404,7 +403,7 @@
|
|||
//if objects or array present
|
||||
} else {
|
||||
|
||||
var delimiter = '\n\n',
|
||||
var delimiter = '\n',
|
||||
multiLines = false; //if the log need multiples lines (ie. object, array)
|
||||
|
||||
//Process arg one by one
|
||||
|
|
Loading…
Add table
Reference in a new issue