phaser/src/polyfills/Array.isArray.js
2018-01-09 21:43:56 +00:00

10 lines
183 B
JavaScript

/**
* A polyfill for Array.isArray
*/
if (!Array.isArray)
{
Array.isArray = function (arg)
{
return Object.prototype.toString.call(arg) === '[object Array]';
};
}