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

Method isRegExp

mini_program/common/Tools.js:133–135  ·  view source on GitHub ↗

* 判断某个元素是否为正则表达式 * @param {RegExp} value * @return {Boolean}

(value)

Source from the content-addressed store, hash-verified

131 * @return {Boolean}
132 */
133 isRegExp(value) {
134 return this.type(value) === '[object RegExp]'
135 }
136
137 /**
138 * 判断某个元素是否为File对象

Callers

nothing calls this directly

Calls 1

typeMethod · 0.95

Tested by

no test coverage detected