param args return export type InspectFunction = ( ... args : any [ ] ) => any ; /**
 * Input type for value inspection
 */ export type InspectValue = undefined | null | number | string | object | InspectFunction ; param value return export function inspect ( value ) { switch ( typeof value ) { case "object" : return JSON . stringify ( value , undefined , 2 ) . replace ( /\s+/g , " " ) ; case "string" : return `'${ value }'` ; } return ( "" + value ) . replace ( /\s+/g , " " ) ; }