mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 01:30:10 +08:00
* --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: sinon dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm ... Signed-off-by: dependabot[bot] <support@github.com> * Update checked-in dependencies --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
14 lines
316 B
JavaScript
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;
|