Download chakra-ui/packages/react/src/utils/is.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/is.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/is.ts
-
curl -L -o is.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/is.ts
390 Bytes
| export const isObject = (v: any): v is Record<string, any> => | |
| v != null && typeof v === "object" && !Array.isArray(v) | |
| export const isCssVar = (v: string): boolean => /^var\(--.+\)$/.test(v) | |
| export const isString = (v: any): v is string => typeof v === "string" | |
| type AnyFunction = (...args: any[]) => any | |
| export const isFunction = (v: any): v is AnyFunction => typeof v === "function" | |