Misc Noop
# jQuery.noop() Method
[jQuery Misc Methods](#)
## Example
Pass an empty function as an argument, returns an empty array.
$(function(){var result = $.map([1, 2, 3], $.noop); document.writeln(result.length); // 0})
[Try it Β»](#)
* * *
## Definition and Usage
The $.noop() function is an empty function.
**Note: This method does not accept any parameters.** For example, when a plugin provides an optional callback function interface, if the callback function is not passed when called, $.noop is used as a substitute for execution.
* * *
## Syntax
_$_.noop()
[jQuery Misc Methods](#)
YouTip