Function.dummy >= 0.1.2

Purpose

A dummy function

Syntax

Function.dummy ( );


Examples

Use as callback

If a function requires a callback, but you don't really have one, you can pass this. Any error will silently fail.

function myFnc(callback) {
    // Stuff goes here
    return callback(null, 'some values');
}

// Just pass it along as the callback
myFnc(Function.dummy);