MCPcopy Create free account
hub / github.com/microsoft/SandDance / getKey

Function getKey

docs/tests/v2/es6/js/sanddance.js:3433–3443  ·  view source on GitHub ↗
(gl, value)

Source from the content-addressed store, hash-verified

3431}
3432
3433function getKey(gl, value) {
3434 value = Number(value);
3435
3436 for (var key in gl) {
3437 if (gl[key] === value) {
3438 return "GL.".concat(key);
3439 }
3440 }
3441
3442 return String(value);
3443}
3444
3445function getKeyType(gl, value) {
3446 (0, _assert.default)(value !== undefined, 'undefined key');

Callers 1

glKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected