MCPcopy Index your code
hub / github.com/codecombat/codecombat / isObjectID

Method isObjectID

app/models/CocoModel.js:370–372  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

368 }
369
370 static isObjectID (s) {
371 return (s.length === 24) && (__guard__(s.match(/[a-f0-9]/gi), x => x.length) === 24)
372 }
373
374 hasReadAccess (actor) {
375 // actor is a User object

Callers 1

getReferencedModelMethod · 0.80

Calls 1

__guard__Function · 0.70

Tested by

no test coverage detected