UNPKG

arcade-physics

Version:
22 lines 678 B
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Swaps the position of two elements in the given array. * The elements must exist in the same array. * The array is modified in-place. * * @function Phaser.Utils.Array.Swap * @since 3.4.0 * * @param {array} array - The input array. * @param {*} item1 - The first element to swap. * @param {*} item2 - The second element to swap. * * @return {array} The input array. */ declare const Swap: (array: any, item1: any, item2: any) => any; export { Swap }; //# sourceMappingURL=Swap.d.ts.map