MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / isReserved

Function isReserved

06.Router/basic/js/vue.js:103–106  ·  view source on GitHub ↗

* Check if a string starts with $ or _ * * @param {String} str * @return {Boolean}

(str)

Source from the content-addressed store, hash-verified

101 */
102
103 function isReserved(str) {
104 var c = (str + '').charCodeAt(0);
105 return c === 0x24 || c === 0x5F;
106 }
107
108 /**
109 * Guard text output, make sure undefined outputs

Callers 1

stateMixinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected