MCPcopy
hub / github.com/4ian/GDevelop / firstKey

Method firstKey

GDevelop.js/TestUtils/GDJSMocks.js:650–658  ·  view source on GitHub ↗

* @returns {?string} The first key of the Hashtable, or undefined if empty.

()

Source from the content-addressed store, hash-verified

648 * @returns {?string} The first key of the Hashtable, or undefined if empty.
649 */
650 firstKey() {
651 for (var k in this.items) {
652 if (this.items.hasOwnProperty(k)) {
653 return k;
654 }
655 }
656
657 return null;
658 }
659
660 /**
661 * @param {Array<string>} result

Callers 1

createObjectOnSceneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected