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.
1 parent 03f0483 commit d6f8bb6Copy full SHA for d6f8bb6
functions/var/gettype.js
@@ -13,11 +13,15 @@ function gettype(mixed_var) {
13
// * example 2: gettype(undefined);
14
// * returns 2: 'undefined'
15
// * example 3: gettype({0: 'Kevin van Zonneveld'});
16
- // * returns 3: 'array'
+ // * returns 3: 'object'
17
// * example 4: gettype('foo');
18
// * returns 4: 'string'
19
// * example 5: gettype({0: function () {return false;}});
20
- // * returns 5: 'array'
+ // * returns 5: 'object'
21
+ // * example 6: gettype({0: 'test', length: 1, splice: function () {}});
22
+ // * returns 6: 'object'
23
+ // * example 6: gettype(['test']);
24
+ // * returns 6: 'array'
25
var s = typeof mixed_var,
26
name;
27
var getFuncName = function(fn) {
0 commit comments