freerasp-react-native
Version:
React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.
15 lines (11 loc) • 439 B
text/typescript
import { RaspExecutionState } from '../models/raspExecutionState';
import { Threat } from '../models/threat';
export const getThreatCount = (): number => {
return Threat.getValues().length;
};
export const getRaspExecutionStateCount = (): number => {
return RaspExecutionState.getValues().length;
};
export const itemsHaveType = (data: any[], desidedType: string) => {
return data.every((item) => typeof item === desidedType);
};