arcade-physics
Version:
Use Arcade Physics without Phaser.
24 lines • 821 B
JavaScript
;
/* eslint-disable no-prototype-builtins */
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Determine whether the source object has a property with the specified key.
*
* @function Phaser.Utils.Objects.HasValue
* @since 3.0.0
*
* @param {object} source - The source object to be checked.
* @param {string} key - The property to check for within the object
*
* @return {boolean} `true` if the provided `key` exists on the `source` object, otherwise `false`.
*/
const HasValue = (source, key) => {
return source.hasOwnProperty(key);
};
exports.default = HasValue;
//# sourceMappingURL=HasValue.js.map