MCPcopy
hub / github.com/ygs-code/vue / isPrimitive

Function isPrimitive

vue.js:50–59  ·  view source on GitHub ↗

* Check if value is primitive * //判断数据类型是否是string,number,symbol,boolean

(value)

Source from the content-addressed store, hash-verified

48 * //判断数据类型是否是string,number,symbol,boolean
49 */
50 function isPrimitive(value) {
51 //判断数据类型是否是string,number,symbol,boolean
52 return (
53 typeof value === 'string' ||
54 typeof value === 'number' ||
55 // $flow-disable-line
56 typeof value === 'symbol' ||
57 typeof value === 'boolean'
58 )
59 }
60
61 /**
62 * Quick object check - this is primarily used to tell

Callers 8

setFunction · 0.85
delFunction · 0.85
normalizeChildrenFunction · 0.85
normalizeArrayChildrenFunction · 0.85
createElementFunction · 0.85
_createElementFunction · 0.85
createChildrenFunction · 0.85
vue.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected