MCPcopy Create free account
hub / github.com/ygs-code/vue / isKeyNotMatch

Function isKeyNotMatch

vue.js:5506–5512  ·  view source on GitHub ↗
(expect, actual)

Source from the content-addressed store, hash-verified

5504 * 如果没有匹配上的就返回true
5505 */
5506 function isKeyNotMatch(expect, actual) {
5507 if (Array.isArray(expect)) { //检查expect 是否是数组
5508 return expect.indexOf(actual) === -1 //检查数组中是否含有actual
5509 } else {
5510 return expect !== actual
5511 }
5512 }
5513
5514 /**
5515 * Runtime helper for checking keyCodes from config. 用于从配置中检查密钥代码的运行时帮助程序。

Callers 1

checkKeyCodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected