mirror of
https://github.com/photonstorm/phaser
synced 2025-01-10 20:28:56 +00:00
10 lines
183 B
JavaScript
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]';
|
|
};
|
|
}
|