function labelReducer(labels, currentKey) {
    return labels.filter(function (label) {
        if (!label.keyLabel) {
            return false;
        }
        return label.keyLabel.startsWith(currentKey);
    });
}
// *without* the labels that do not start with the current key
without* the labels that do not start with the current key
without * the labels that do not start with the current key
function labelReducer(labels, currentKey) {
    return labels.filter(function (label) {
        if (!label.keyLabel) {
            return false;
        }
        return label.keyLabel.startsWith(currentKey);
    });
}
function labelReducer ( labels , currentKey ) { return labels . filter ( function ( label ) { if ( ! label . keyLabel ) { return false ; } return label . keyLabel . startsWith ( currentKey ) ; } ) ; }
without* the labels that do not start with the current key
without * the labels that do not start with the current key