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

Function isNative

vue.js:751–763  ·  view source on GitHub ↗
(Ctor)

Source from the content-addressed store, hash-verified

749
750 /* istanbul ignore next */
751 function isNative(Ctor) {
752 //或者判断该函数是不是系统内置函数
753 //判断一个函数中是否含有 'native code' 字符串 比如
754 // function code(){
755 // var native='native code'
756 // }
757 // 或者
758 // function code(){
759 // var native='native codeasdfsda'
760 // }
761
762 return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
763 }
764
765 //判断是否支持Symbol 数据类型
766 var hasSymbol =

Callers 1

vue.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected