MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / isError

Method isError

mini_program/common/Tools.js:252–254  ·  view source on GitHub ↗

* 判断某个元素是否为错误类型 * @param {Object} value * @return {Boolean}

(value)

Source from the content-addressed store, hash-verified

250 * @return {Boolean}
251 */
252 isError(value) {
253 return this.type(value) === '[object Error]'
254 }
255
256 /**
257 * 删除字符串左右两端的空格

Callers

nothing calls this directly

Calls 1

typeMethod · 0.95

Tested by

no test coverage detected