Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
//stringToArray.js
/*global adventurejs A*/ 

/**
  * Convert a string into an array containing the string.
  * @method adventurejs.Game#stringToArray
  * @memberOf adventurejs.Game
  * @param {String} string 
  * @returns {Array}
  */
adventurejs.stringToArray = function Adventurejs_stringToArray(string) 
{
  "use strict";
  if("string" === typeof string ) 
  {
    string = [ string ];
  }
  return string;
};