-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathnonRange.ts
More file actions
16 lines (15 loc) · 768 Bytes
/
nonRange.ts
File metadata and controls
16 lines (15 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { isRange } from "./isRange";
/**
* Checks if the provided value is not a <a href="https://developers.google.com/apps-script/reference/spreadsheet/range"><code>Range</code></a> object.
*
* @param {unknown} value - The value to check.
* @returns {boolean} `true` if the value is not a <a href="https://developers.google.com/apps-script/reference/spreadsheet/range"><code>Range</code></a> object.
* @see {@link isRange}
* @see <a href="https://developers.google.com/apps-script/reference/spreadsheet/range"><code>Range</code></a>
* @since 1.3.0
* @version 1.0.0
* @environment Google Apps Script
*/
export function nonRange<T>(value: T | GoogleAppsScript.Spreadsheet.Range): value is T {
return !isRange(value);
}