INNER CODE UNIT · TypeScript
_isVector
terrysahaidak/react-native-gallery-toolkit · packages/common/src/vectors.ts:19
const _isVector = (value: any): value is Vector<any> => {
'worklet';
return typeof value.x !== 'undefined' && value.y !== 'undefined';
};
const isSharedValue = (
value: any,
): value is Animated.SharedValue<any> => {
'worklet';
return typeof value.value !== 'undefined';
};
const _get = <
T extends Animated.SharedValue<SharedValueType> | SharedValueType,
>(
value: T,