Skip to content

Commit 14a5fb3

Browse files
authored
Merge pull request #2 from Codevendor/dev
Dev
2 parents 0cdc658 + 65a47f7 commit 14a5fb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "curry-console",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "The curry-console module extends the native console logging library with many extra features like coloring, labels, recording, hiding, event emit notifications, etc.",
55
"type": "module",
66
"private": false,

src/helpers/type-of.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export function type_of(src, extended = false) {
6161

6262
case 'arguments': return 'arguments';
6363
case 'array': return 'array';
64-
case 'error': return (src.constructor.name) ? src.constructor.name : 'error';
64+
case 'error': return (src.constructor && src.constructor.name) ? src.constructor.name : 'error';
6565
default:
6666

6767
// Check if constructor
68-
if (src.constructor.name) {
68+
if (src.constructor && src.constructor.name) {
6969
if(src.constructor.name.toLowerCase() === 'object') return 'object';
7070
return src.constructor.name;
7171
}

0 commit comments

Comments
 (0)