We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lowercase
1 parent 562832a commit 0572440Copy full SHA for 0572440
src/lib/type-of.func.ts
@@ -4,5 +4,5 @@
4
* @returns {string} The return value is a `string` of the object class name.
5
* @author https://javascript.plainenglish.io/the-best-way-to-type-check-in-vanilla-js-55197b4f45ec
6
*/
7
-export const typeOf = (value: any): string =>
8
- Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
+export const typeOf = (value: any): string =>
+ Object.prototype.toString.call(value).slice(8, -1);
0 commit comments