Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js
Назад
'use strict'; const get = require('../get'); module.exports = function isDefaultIdIndex(index) { if (Array.isArray(index)) { // Mongoose syntax const keys = Object.keys(index[0]); return keys.length === 1 && keys[0] === '_id' && index[0]._id !== 'hashed'; } if (typeof index !== 'object') { return false; } const key = get(index, 'key', {}); return Object.keys(key).length === 1 && key.hasOwnProperty('_id'); };
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка