{"version":3,"file":"definedProps.mjs","sources":["../../../../src/scene/container/utils/definedProps.ts"],"sourcesContent":["/**\n * Returns a new object with all properties from the input object that have defined values.\n * @template T - The type of the input object.\n * @param {T} obj - The input object.\n * @returns {T} - A new object with only the defined properties from the input object.\n * @category utils\n * @ignore\n */\nexport function definedProps<T extends Record<string, any>>(obj: T): T\n{\n    const result: Partial<T> = {};\n\n    for (const key in obj)\n    {\n        if (obj[key] !== undefined)\n        {\n            result[key] = obj[key];\n        }\n    }\n\n    return result as T;\n}\n"],"names":[],"mappings":";AAQO,SAAS,aAA4C,GAAA,EAC5D;AACI,EAAA,MAAM,SAAqB,EAAC;AAE5B,EAAA,KAAA,MAAW,OAAO,GAAA,EAClB;AACI,IAAA,IAAI,GAAA,CAAI,GAAG,CAAA,KAAM,KAAA,CAAA,EACjB;AACI,MAAA,MAAA,CAAO,GAAG,CAAA,GAAI,GAAA,CAAI,GAAG,CAAA;AAAA,IACzB;AAAA,EACJ;AAEA,EAAA,OAAO,MAAA;AACX;;;;"}