1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-19 10:22:30 +03:00

Revert "Use native Array.isArray when available."

This commit is contained in:
Matthew Hodgson
2016-11-13 13:23:41 +00:00
committed by GitHub
parent e0c924870d
commit 00e7c84a93

View File

@@ -204,8 +204,7 @@ module.exports.isFunction = function(value) {
* @return {boolean} True if it is an array.
*/
module.exports.isArray = function(value) {
return Array.isArray ? Array.isArray(value) :
Boolean(value && value.constructor === Array);
return Boolean(value && value.constructor === Array);
};
/**