description param val internal export function isFn ( val ) { return typeof val === 'function' ; } description param error internal export function isCtorInvokedWithoutNewError ( error ) { if ( error instanceof TypeError ) { return error . message . includes ( "cannot be invoked without 'new'" ) ; } return false ; }