UNPKG

@bdelab/roar-firekit

Version:

A library to facilitate Firebase authentication and Cloud Firestore interaction for ROAR apps

7 lines (6 loc) 400 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.flattenObjectValues = void 0; // eslint-disable-next-line @typescript-eslint/no-explicit-any const flattenObjectValues = (obj) => Object.values(obj).flatMap((value) => value !== null && typeof value === 'object' ? (0, exports.flattenObjectValues)(value) : value); exports.flattenObjectValues = flattenObjectValues;