UNPKG

arcade-physics

Version:
20 lines 662 B
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Moves an element in an array to a new position within the same array. * The array is modified in-place. * * @function Phaser.Utils.Array.MoveTo * @since 3.4.0 * * @param {array} array - The array. * @param {*} item - The element to move. * @param {number} index - The new index that the element will be moved to. * * @return {*} The element that was moved. */ export declare const MoveTo: (array: any, item: any, index: any) => any; //# sourceMappingURL=MoveTo.d.ts.map