Skip to content

Anonymous Function

An anonymous function is a function with no name. It's used as small, throwaway functions, usually in context of sorting, closures and currying.

Examples

javascript
function (x,y) {
	return x*y
}