Skip to content
Subhajit Sahu edited this page Jul 22, 2022 · 2 revisions

Get the name of a function.

Similar: name, length.


function name(x)
// x: a function
const {name} = require('extra-function');
const {delay, debounce} = require('extra-function');


name(delay);
// → 'delay'

name(debounce);
// → 'debounce'


References

Clone this wiki locally