MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getFirstKey

Function getFirstKey

static/webuploader/webuploader.custom.js:1231–1238  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

1229
1230 // 获取对象的第一个key
1231 getFirstKey = function( obj ) {
1232 for ( var key in obj ) {
1233 if ( obj.hasOwnProperty( key ) ) {
1234 return key;
1235 }
1236 }
1237 return null;
1238 };
1239
1240 // 接口类。
1241 function Runtime( options ) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected