UNPKG

arcade-physics

Version:
23 lines 717 B
"use strict"; /** * @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 }); /** * Takes the given string and reverses it, returning the reversed string. * For example if given the string `Atari 520ST` it would return `TS025 iratA`. * * @function Phaser.Utils.String.Reverse * @since 3.0.0 * * @param {string} string - The string to be reversed. * * @return {string} The reversed string. */ const Reverse = string => { return string.split('').reverse().join(''); }; exports.default = Reverse; //# sourceMappingURL=Reverse.js.map