Difference between revisions of "Useful Functions"
Jump to navigation
Jump to search
(Created page with "== Map function == ''' will duplicate an array to another'' == Splice == == indexOf == == Split == ''' Used to split text given a delimiter into an array of substrings'''...") |
|||
Line 14: | Line 14: | ||
== Slice == | == Slice == | ||
==[[#top|Back To Top]]-[[Main_Page| Home]] - [[Java Script|Category]]== |
Revision as of 20:19, 26 November 2016
Map function
' will duplicate an array to another
Splice
indexOf
Split
Used to split text given a delimiter into an array of substrings
var myText = 'hello-1' var mysplit = myText.split('-')
Will Yield
['hello', 1]