mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 12:56:41 +00:00
42 lines
685 B
TypeScript
42 lines
685 B
TypeScript
import {
|
|
ncIsArray,
|
|
ncIsArrayIncludes,
|
|
ncIsBoolean,
|
|
ncIsEmptyArray,
|
|
ncIsEmptyObject,
|
|
ncIsFunction,
|
|
ncIsNull,
|
|
ncIsNullOrUndefined,
|
|
ncIsNumber,
|
|
ncIsObject,
|
|
ncIsPromise,
|
|
ncIsString,
|
|
ncIsUndefined,
|
|
} from 'nocodb-sdk'
|
|
|
|
const ncIsPlaywright = () => {
|
|
return !!(window as any)?.isPlaywright
|
|
}
|
|
|
|
const ncIsSharedViewOrBase = () => {
|
|
return localStorage.getItem('ncIsSharedViewOrBase') === 'true'
|
|
}
|
|
|
|
export {
|
|
ncIsObject,
|
|
ncIsEmptyObject,
|
|
ncIsArray,
|
|
ncIsEmptyArray,
|
|
ncIsString,
|
|
ncIsNumber,
|
|
ncIsBoolean,
|
|
ncIsUndefined,
|
|
ncIsNull,
|
|
ncIsFunction,
|
|
ncIsPromise,
|
|
ncIsArrayIncludes,
|
|
ncIsPlaywright,
|
|
ncIsSharedViewOrBase,
|
|
ncIsNullOrUndefined,
|
|
}
|