evoShop.chunk( str , chunk_size )

arguments:

  • string: string to be broken up
  • chunk_size: max size of chunk
  • returns:

  • array of strings, each which a max length of chunk_size
  • evoShop.chunk( "abcdef" , 2 ): // returns ["ab" , "cd" , "ef" ]