Files
agentic-labs-challenge-subm…/adaptive-loop/node_modules/loupe/lib/function.js
T
AlexKucera 00f4c34da0 (Adaptive Loop) Pass 3
(Adaptive Loop) Record freeze commit hash in context manifest
2026-08-13 15:23:35 +02:00

10 lines
381 B
JavaScript

import { truncate } from './helpers.js';
export default function inspectFunction(func, options) {
const functionType = func[Symbol.toStringTag] || 'Function';
const name = func.name;
if (!name) {
return options.stylize(`[${functionType}]`, 'special');
}
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');
}