name - nodef/extra-function GitHub Wiki

Get the name of a function.

Similar: name, length.

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


xfunction.name(delay);
// → 'delay'

xfunction.name(debounce);
// → 'debounce'

References