How to use the @microsoft/sp-lodash-subset.uniq function in @microsoft/sp-lodash-subset

To help you get started, we’ve selected a few @microsoft/sp-lodash-subset 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 pnp / FilterPack / src / webparts / choiceFilter / ChoiceFilterWebPart.ts View on Github external
if(viewfield == 'LinkTitle' || viewfield == 'LinkTitleNoMenu' || viewfield == 'LinkTitle2') {
                      viewFields.push('Title');
                      fieldOptions.push('Title');
                    } else {
                      fieldOptions.push(viewfield);
                      viewFields.push(viewfield);
                      listinfo.fields.set(viewfield,field.title);
                    }
                }
              });

              listinfo.views.set(viewEntry.Id, {
                id: viewEntry.Id,
                title: viewEntry.Title,
                query: viewEntry.ViewQuery,
                viewFields: uniq(viewFields),
                fieldChoices: uniq(fieldOptions),
              });
            });
github pnp / FilterPack / src / webparts / choiceFilter / ChoiceFilterWebPart.ts View on Github external
viewFields.push('Title');
                      fieldOptions.push('Title');
                    } else {
                      fieldOptions.push(viewfield);
                      viewFields.push(viewfield);
                      listinfo.fields.set(viewfield,field.title);
                    }
                }
              });

              listinfo.views.set(viewEntry.Id, {
                id: viewEntry.Id,
                title: viewEntry.Title,
                query: viewEntry.ViewQuery,
                viewFields: uniq(viewFields),
                fieldChoices: uniq(fieldOptions),
              });
            });