UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

8 lines (6 loc) 235 B
var callbacks = ['done', 'cb', 'callback', 'next'] module.exports = function isNamedCallback (potentialCallbackName) { return callbacks.some(function (trueCallbackName) { return potentialCallbackName === trueCallbackName }) }