phaser/src/polyfills/Array.isArray.js

11 lines
183 B
JavaScript
Raw Normal View History

2016-11-22 03:11:33 +00:00
/**
* A polyfill for Array.isArray
*/
if (!Array.isArray)
{
Array.isArray = function (arg)
{
return Object.prototype.toString.call(arg) === '[object Array]';
};
}