Skip to content

denomod/fn_name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fn_name

tag Build Status license

Extract the name from a function.

Usage

import name from "https://deno.land/x/fn_name/mod.ts";

console.log(name(function foo() {})); // foo
console.log(name(function() {})); // anonymous

API

name(fn: Function): string

Type: Function

Extract names from functions.

License

fn_name is released under the MIT License. See the bundled LICENSE file for details.

Thanks

Heavily inspired by 3rd-Eden/fn.name.