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

Function directionStr

docs/tests/v2/es6/js/sanddance.js:53003–53015  ·  view source on GitHub ↗

* direction cons to string * @param {Const} direction * @returns {String}

(direction)

Source from the content-addressed store, hash-verified

53001
53002
53003 function directionStr(direction) {
53004 if (direction == DIRECTION_DOWN) {
53005 return 'down';
53006 } else if (direction == DIRECTION_UP) {
53007 return 'up';
53008 } else if (direction == DIRECTION_LEFT) {
53009 return 'left';
53010 } else if (direction == DIRECTION_RIGHT) {
53011 return 'right';
53012 }
53013
53014 return '';
53015 }
53016 /**
53017 * get a recognizer by name if it is bound to a manager
53018 * @param {Recognizer|String} otherRecognizer

Callers 1

sanddance.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected