You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7e73a58
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -53,6 +54,14 @@ var ctorName = require( './../../constructor-name' );
53
54
*
54
55
* @param {*} v - input value
55
56
* @returns {string} string indicating the value's type
57
+
*
58
+
* @example
59
+
* var str = typeOf( 'a' );
60
+
* // returns 'string'
61
+
*
62
+
* @example
63
+
* var str = typeOf( 5 );
64
+
* // returns 'number'
56
65
*/
57
66
functiontypeOf(v){
58
67
vartype;
@@ -65,7 +74,7 @@ function typeOf( v ) {
65
74
66
75
// If the `typeof` operator returned something other than `object`, we are done. Otherwise, we need to check for an internal class name or search for a constructor.
0 commit comments