UNPKG

hypertune

Version:

[Hypertune](https://www.hypertune.com/) is the most flexible platform for feature flags, A/B testing, analytics and app configuration. Built with full end-to-end type-safety, Git-style version control and local, synchronous, in-memory flag evaluation. Opt

8 lines (6 loc) 254 B
import { nanoid } from "nanoid"; import { nanoid as nanoidNonSecure } from "nanoid/non-secure"; import { isReactNative } from "../../lib/environment"; export default function uniqueId(): string { return isReactNative ? nanoidNonSecure() : nanoid(); }