UNPKG

@react-native-oh-tpl/react-native-permissions

Version:
9 lines (6 loc) 304 B
import {Platform} from 'react-native'; export const platformVersion = typeof Platform.Version === 'string' ? parseInt(Platform.Version, 10) : Platform.Version; export function uniq<T>(array: T[]): T[] { return array.filter((item, index) => item != null && array.indexOf(item) === index); }