File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1- import { getColumnLetterByIndex } from "@/appsscript " ;
1+ import { getColumnLetterByIndex } from "./getColumnLetterByIndex " ;
22
33/**
44 * ## getColumnLetterByPosition
Original file line number Diff line number Diff line change 1- import { nonNil } from "@ /base" ;
1+ import { nonNil } from "../.. /base" ;
22import { GridRange } from "./types" ;
33
44/**
Original file line number Diff line number Diff line change 1+ import { isObject } from "../../base" ;
2+
3+ /**
4+ * ## isSheet
5+ *
6+ * Checks if the given value is a Google Apps Script [`Sheet`](https://developers.google.com/apps-script/reference/spreadsheet/sheet) object.
7+ *
8+ * @param value - The value to check.
9+ * @returns `true` if the value is a {@link GoogleAppsScript.Spreadsheet.Sheet|Sheet} object, `false` otherwise.
10+ * @see [Class Sheet](https://developers.google.com/apps-script/reference/spreadsheet/sheet)
11+ * @since 1.0.0
12+ * @version 1.0.0
13+ * @environment `Google Apps Script`, `Browser`
14+ */
15+ export function isSheet (
16+ value : unknown
17+ ) : value is GoogleAppsScript . Spreadsheet . Sheet {
18+ return isObject ( value ) && value ?. toString ( ) === "Sheet" ;
19+ }
You can’t perform that action at this time.
0 commit comments