How to use the @gooddata/typings.VisualizationObject.isAttribute function in @gooddata/typings

To help you get started, we’ve selected a few @gooddata/typings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gooddata / gooddata-js / src / DataLayer / converters / toAfmResultSpec.ts View on Github external
(result: VisualizationObject.IVisualizationAttribute[], bucket: VisualizationObject.IBucket) => {
            const items: VisualizationObject.IVisualizationAttribute[] = bucket.items.filter(
                VisualizationObject.isAttribute,
            );

            return result.concat(items);
        },
        [],