forked from CSI-KJSCE/BOS-React-
Commit With Frontend and Backend in MERN
This commit is contained in:
8
backend/node_modules/mongoose/lib/helpers/firstKey.js
generated
vendored
Normal file
8
backend/node_modules/mongoose/lib/helpers/firstKey.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function firstKey(obj) {
|
||||
if (obj == null) {
|
||||
return null;
|
||||
}
|
||||
return Object.keys(obj)[0];
|
||||
};
|
||||
Reference in New Issue
Block a user