Skip to content

Instantly share code, notes, and snippets.

@ComputerGuyChris
Created February 20, 2014 21:36
Show Gist options
  • Save ComputerGuyChris/9123724 to your computer and use it in GitHub Desktop.
Save ComputerGuyChris/9123724 to your computer and use it in GitHub Desktop.
tomdoc for js
// Public: Duplicate some text an arbitrary number of times.
//
// text - The String to be duplicated.
// count - The Integer number of times to duplicate the text.
//
// Examples
//
// multiplex('Tom', 4)
// # => 'TomTomTomTom'
//
// Returns the duplicated String.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment