We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c1b380 commit 8883307Copy full SHA for 8883307
1 file changed
src/openlayers/core/Util.js
@@ -290,6 +290,15 @@ export class Util {
290
static isString(str) {
291
return (typeof str === 'string') && str.constructor === String;
292
}
293
+ /**
294
+ * @function ol.supermap.Util.isObject
295
+ * @description 是否为对象
296
+ * @param {any} obj - 需要判断的内容
297
+ * @returns {boolean}
298
+ */
299
+ static isObject(obj) {
300
+ return Object.prototype.toString.call(obj) === '[object Object]';
301
+ }
302
303
/**
304
* @function ol.supermap.Util.trim
0 commit comments