extract JavaScript function name

Published on Tue Mar 01 2022

Extracts the name of the outer function. Useful to get the name of a function reference using fn.toString().