- Move the JsonTree component and the other components to twenty-ui - Rely on a React Context to provide translations ## Future work It would be good to migrate the `createRequiredContext` function to `twenty-ui`. I didn't want to migrate it in this PR but would have liked to use it.
6 lines
161 B
TypeScript
6 lines
161 B
TypeScript
import { isArray as _isArray } from '@sniptt/guards';
|
|
|
|
export const isArray = (
|
|
value: unknown,
|
|
): value is unknown[] | readonly unknown[] => _isArray(value);
|