Skip to content

Commit 0572440

Browse files
refactor(typeOf): remove the lowercase.
1 parent 562832a commit 0572440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/type-of.func.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
* @returns {string} The return value is a `string` of the object class name.
55
* @author https://javascript.plainenglish.io/the-best-way-to-type-check-in-vanilla-js-55197b4f45ec
66
*/
7-
export const typeOf = (value: any): string =>
8-
Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
7+
export const typeOf = (value: any): string =>
8+
Object.prototype.toString.call(value).slice(8, -1);

0 commit comments

Comments
 (0)