MCPcopy
hub / github.com/aosabook/500lines / keyOf

Function keyOf

spreadsheet/code/as-react-livescript/main.js:14155–14164  ·  view source on GitHub ↗
(oneKeyObj)

Source from the content-addressed store, hash-verified

14153 * reuse those resolutions.
14154 */
14155 var keyOf = function(oneKeyObj) {
14156 var key;
14157 for (key in oneKeyObj) {
14158 if (!oneKeyObj.hasOwnProperty(key)) {
14159 continue;
14160 }
14161 return key;
14162 }
14163 return null;
14164 };
14165
14166
14167 module.exports = keyOf;

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected