UNPKG

cesium

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

23 lines (20 loc) 538 B
define([ './defined' ], function( defined) { 'use strict'; /** * Tests an object to see if it is an array. * @exports isArray * * @param {*} value The value to test. * @returns {Boolean} true if the value is an array, false otherwise. */ var isArray = Array.isArray; if (!defined(isArray)) { isArray = function(value) { return Object.prototype.toString.call(value) === '[object Array]'; }; } return isArray; });