Extract the name from a function.
import name from "https://deno.land/x/fn_name/mod.ts";
console.log(name(function foo() {})); // foo
console.log(name(function() {})); // anonymous
Type: Function
Extract names from functions.
fn_name is released under the MIT License. See the bundled LICENSE file for details.
Heavily inspired by 3rd-Eden/fn.name.