phaser/src/utils/NULL.js
2023-01-02 17:36:27 +00:00

23 lines
523 B
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2013-2023 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* A NULL OP callback function.
*
* This function always returns `null`.
*
* Used internally by Phaser when it's more expensive to determine if a callback exists
* than it is to just invoke an empty function.
*
* @function Phaser.Utils.NULL
* @since 3.60.0
*/
var NULL = function ()
{
return null;
};
module.exports = NULL;