Files
openlayers/src/ol/functions.js
Frederic Junod b50a47114e Move the nullFunction to ol/functions
And rename it to `UNDEFINED`.
2018-03-01 14:41:18 +01:00

27 lines
379 B
JavaScript

/**
* @module ol/functions
*/
/**
* Always returns true.
* @returns {boolean} true.
*/
export function TRUE() {
return true;
}
/**
* Always returns false.
* @returns {boolean} false.
*/
export function FALSE() {
return false;
}
/**
* A reusable function, used e.g. as a default for callbacks.
*
* @return {undefined} Nothing.
*/
export function UNDEFINED() {}