simpleCart(js)

items
Items:
Total:

simpleCart.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
simpleCart.chunk( "abcdef" , 2 ): // returns ["ab" , "cd" , "ef" ]

Comments

  1. Oct 06, 2012

    ana  said:

    great script

Commenting is not available in this channel entry.