Phaser API Documentation

  Version: 

Member of: Phaser.Utils.String

<static> Reverse(string)

Description:

Takes the given string and reverses it, returning the reversed string. For example if given the string Atari 520ST it would return TS025 iratA.

Parameters:

name type description
string string

The string to be reversed.

Returns:
Description:

The reversed string.

Type:
  • string
Examples:
Since: 3.0.0