@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
19 lines (18 loc) • 932 B
JavaScript
try {
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "60eca8b5-67ed-428b-998b-e2125d4f12b5", e._sentryDebugIdIdentifier = "sentry-dbid-60eca8b5-67ed-428b-998b-e2125d4f12b5");
} catch (e) {}
function getNestedPropertyKeys(obj, includeUndefined = false, includeFalsy = true) {
const fieldNames = [];
Object.entries(obj).forEach(([key, value]) => {
if (typeof value === "object" && value !== null) {
const nested = getNestedPropertyKeys(value).map((name) => `${key}.${name}`);
fieldNames.push(...nested);
return;
}
if ((value !== void 0 || includeUndefined) && (value || !includeFalsy)) fieldNames.push(key);
});
return fieldNames;
}
//#endregion
export { getNestedPropertyKeys as t };