/
1Rrd0
/
Course
Обзор
Документация
Войти
/
1Rrd0
/
Course
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/mongoose/lib/helpers/getConstructorName.js
16 строк
334 B
dima
2
13 дек 2025, 10:58
13 дек 2025, 10:58
ce5a48e
Код
Авторство
О чём код?
'use strict'; /** * If `val` is an object, returns constructor name, if possible. Otherwise returns undefined. * @api private */ module.exports = function getConstructorName(val) { if (val == null) { return void 0; } if (typeof val.constructor !== 'function') { return void 0; } return val.constructor.name; };