convert a mode name into it's corresponding integer value
toInt('ctb'); // => 2 toInt('std'); // => 0 toInt('taiko'); // => 1 toInt('m'); // => 3 Copy
toInt('ctb'); // => 2 toInt('std'); // => 0 toInt('taiko'); // => 1 toInt('m'); // => 3
convert a mode name into it's corresponding integer value
Example