Filtering SharePoint Object Collections using PnP JavaScript library

PnP-JS-Core library contains the number of extensible methods and properties. By using that we can achieve the various actions in a simple code. To know more about this library component, visit the below links,

SharePoint has lot of building blocks in collections which are used to form a SharePoint site. Those are used in manage the contents, generate reports based on contents & settings, etc… To manage or reporting the contents, we have to insert sorting or filtering functionality to the collections.

Based on 1.0.1 version of PnP-JS-Core library, following are the collections available for developers to use in SharePoint add-ins or applications,

contenttypes

fields

Files

folders

items

lists

navigation

sitegroups

siteusers

usercustomactions

userprofiles

Views

webs

Note: Links will be updated soon on each object to show more details

PnP-JS-Core Component is built using the REST API, so the same syntax for filtering & sorting can be used in this library extensions.

To apply the filter in REST API, we can use the below format to filter the items from the collection,