Sha256: aec65e4f295ba93768fe0d5cb94089d2a17f31221ea54d4e180bf03975c78d8e
Contents?: true
Size: 381 Bytes
Versions: 26
Compression:
Stored size: 381 Bytes
Contents
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'); }
Version data entries
26 entries across 26 versions & 1 rubygems