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

Method isFile

mini_program/common/Tools.js:142–144  ·  view source on GitHub ↗

* 判断某个元素是否为File对象 * @param {Object} obj * @return {Boolean}

(obj)

Source from the content-addressed store, hash-verified

140 * @return {Boolean}
141 */
142 isFile(obj) {
143 return this.type(obj) === '[object File]'
144 }
145
146 /**
147 * 判断某个元素是否为FormData对象

Callers

nothing calls this directly

Calls 1

typeMethod · 0.95

Tested by

no test coverage detected