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

14 lines (13 loc) 249 B
export default function getNestedValue( o: any, path: string[] ): any | undefined { let value = o; for (const key of path) { if (typeof value === "undefined") { return undefined; } value = value[key]; } return value; }