Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. const EXPLODE_CHAR = "#";
  2.  
  3. /*
  4.  Loop through every item inside the array
  5.  */
  6. for (var index = 0; index < dataNoordHolland.length; index++) {
  7.     /*
  8.      Explode every item by the # character to convert it to an array
  9.      */
  10.     var splittedItem = dataNoordHolland[index].split(EXPLODE_CHAR);
  11.     splittedItem.splice(1, 0, "Item i want to add to teh array!");
  12.     console.log(splittedItem);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement