UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

12 lines (11 loc) 366 B
/** * flatten an object means each keys are a jsonpath. * jsperf: https://jsperf.com/talend-flatten * @param {object} obj the source object * @param {object} options * @return {object} flatten object * @example * flatten({ level1: { level2: 'foo' }}) * // { 'level1.level2': 'foo' } */ export default function flatten(obj: object, options: object): object;