Skip to content
Subhajit Sahu edited this page Aug 7, 2022 · 1 revision

Get the name of a function.

Similar: name, length.


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


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

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


References

Clone this wiki locally