Browse Source

add Array.isArray to array type checking example

Kyle P Davis 10 years ago
parent
commit
cda482a196
1 changed files with 4 additions and 0 deletions
  1. 4 0
      example/typeArray.js

+ 4 - 0
example/typeArray.js

@@ -17,6 +17,10 @@ exports.typeArray = {
 		getTypeStr(arr) === "[object Array]";
 		getTypeStr(arr) === "[object Array]";
 	},
 	},
 
 
+	"Array.isArray": function() {
+		Array.isArray(arr);
+	},
+
 	"instanceof check": function() {
 	"instanceof check": function() {
 		arr instanceof Array;
 		arr instanceof Array;
 	},
 	},