This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var str = "word1 word2 word3 word4 word5"; | |
| var wordList = str.split(" "); | |
| var wordCount = wordList.length; | |
| function permute(wordList, wordCount) { | |
| var results = []; | |
| if (wordCount === 1) { | |
| return wordList; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function submitForms() { | |
| // Get the active sheet | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| // Get the data range | |
| var range = sheet.getDataRange(); | |
| var values = range.getValues(); | |
| // Loop through each row of data | |
| for (var i = 0; i < values.length; i++) { |
OlderNewer