You can also use filter()
.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("Test");
var range_input = ss.getRange("A1:A").getValues();
var filtered_input = range_input.filter(String);
More Related Contents:
- Determining the last row in a single column
- How can I be getting multiple unwanted event blocks from the same onFormSubmit Trigger?
- ArrayFormula is breaking the getLastRow() funtion. Possible workarounds?
- Google Sheets OnEdit() – You do not have permission to call a service
- Detect user inserting row or column in a google spreadsheet and reacting in a script
- Is there a custom function or script that returns gid of a specific sheet in Google Sheets?
- Export (or print) with a google script new version of google spreadsheets to pdf file, using pdf options
- Google app scripts: email a spreadsheet as excel
- Is there a way to keep two sheets synchronized?
- Selecting the last value of a column
- Moving Files In Google Drive Using Google Script
- How to get onFormSubmit to trigger automatically?
- Copying a spreadsheet copies all linked files as well
- onEdit simple trigger never seems to be triggered
- “SpreadsheetApp.getUi() cannot be called from this context”
- Using built-in spreadsheet functions in a script
- Protect ranges with google apps script
- GAS “On edit” trigger not running when edited from API
- How to access new ‘in-cell-image’ from google apps script?
- How to convert a Google Sheets-File to an Excel-File (XLSX)
- Difference between getValue() and getDisplayValue() on google app script
- Dynamically creating spreadsheet menu items
- Creating and Sending sheets in the same function
- How do I know if spreadsheet cells are merged using google apps script
- How to use a formula written as a string in another cell [evaluate for Google Spreadsheet] [duplicate]
- How to prefill Google form checkboxes?
- Google apps script error: “You do not have permission to call protect” [duplicate]
- Google spreadsheet “Cannot call method “getRange” of null”
- Is it possible to create macro buttons to navigate in Google Sheets?
- Publish an add-on privately