Skip to content

Commit

Permalink
Merge pull request #2 from Codevendor/dev
Browse files Browse the repository at this point in the history
Dev
Codevendor authored Mar 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 0cdc658 + 65a47f7 commit 14a5fb3
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "curry-console",
"version": "0.0.5",
"version": "0.0.6",
"description": "The curry-console module extends the native console logging library with many extra features like coloring, labels, recording, hiding, event emit notifications, etc.",
"type": "module",
"private": false,
4 changes: 2 additions & 2 deletions src/helpers/type-of.js
Original file line number Diff line number Diff line change
@@ -61,11 +61,11 @@ export function type_of(src, extended = false) {

case 'arguments': return 'arguments';
case 'array': return 'array';
case 'error': return (src.constructor.name) ? src.constructor.name : 'error';
case 'error': return (src.constructor && src.constructor.name) ? src.constructor.name : 'error';
default:

// Check if constructor
if (src.constructor.name) {
if (src.constructor && src.constructor.name) {
if(src.constructor.name.toLowerCase() === 'object') return 'object';
return src.constructor.name;
}

0 comments on commit 14a5fb3

Please sign in to comment.