MCPcopy Create free account
hub / github.com/codecombat/codecombat / isStringAndStartsWith

Function isStringAndStartsWith

app/assets/javascripts/setImmediate.js:131–133  ·  view source on GitHub ↗
(string, putativeStart)

Source from the content-addressed store, hash-verified

129 var MESSAGE_PREFIX = "com.bn.NobleJS.setImmediate" + Math.random();
130
131 function isStringAndStartsWith(string, putativeStart) {
132 return typeof string === "string" && string.substring(0, putativeStart.length) === putativeStart;
133 }
134
135 function onGlobalMessage(event) {
136 // This will catch all incoming messages (even from other windows!), so we need to try reasonably hard to

Callers 1

onGlobalMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected