MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / isString

Function isString

src/common/util/BaseUtil.js:1–3  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1export function isString(str) {
2 return typeof str === 'string' && str.constructor === String;
3}
4
5export function isArray(obj) {
6 return Object.prototype.toString.call(obj) === '[object Array]';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected