MCPcopy Create free account
hub / github.com/facebook/Rapid / locationSetID

Method locationSetID

modules/core/LocationSystem.js:314–322  ·  view source on GitHub ↗

* locationSetID * Returns a locationSetID for a given locationSet (fallback to `+[Q2]`, world) * (The locationSet doesn't necessarily need to be resolved to compute its `id`) * * @param `locationSet` A {LocationSet} Object, e.g. `{ include: ['us'] }` * @return String locationSetID,

(locationSet)

Source from the content-addressed store, hash-verified

312 * @return String locationSetID, e.g. `+[Q30]`
313 */
314 locationSetID(locationSet) {
315 let locationSetID;
316 try {
317 locationSetID = LOCO.validateLocationSet(locationSet).id;
318 } catch (err) {
319 locationSetID = '+[Q2]'; // the world
320 }
321 return locationSetID;
322 }
323
324
325 /**

Callers 2

_loadNsiDataAsyncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected