Files
21_KnjazkinSO 08d4cc1f80
Some checks failed
CI / build (push) Failing after 3m53s
add CI pipeline with lint, test, build
2026-05-10 16:19:05 +03:00

14 lines
316 B
JavaScript

"use strict";
/**
* Returns a display name for a value from a constructor
* @param {object} value A value to examine
* @returns {(string|null)} A string or null
*/
function className(value) {
const name = value.constructor && value.constructor.name;
return name || null;
}
module.exports = className;