getDropletCertificationCount: function()

in webapp/components/flow-design-system/fds-demo.js [731:740]


    getDropletCertificationCount: function (certification) {
        return this.filteredDroplets.filter(function (droplet) {
            return Object.keys(droplet).find(function (key) {
                if (key === certification && droplet[certification].type === 'certification') {
                    return droplet;
                }
                return null;
            });
        }).length;
    },