How to use the shufflejs.ALL_ITEMS function in shufflejs

To help you get started, we’ve selected a few shufflejs 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 ursa-majors / co-ment / client / src / containers / PostsGrid.jsx View on Github external
this.shuffle.filter((element, shuffle) => {
            // If there is a current filter applied, ignore elements that don't match it.
            if (shuffle.group !== Shuffle.ALL_ITEMS) {
              // Get the item's groups.
              const groups = element.getAttribute('data-groups');
              // remove empty values from filter list
              let activeFilters = shuffle.group.filter((el) => el !== '');
              // for each active filter, check against element groups
              for (i=0; i

shufflejs

Categorize, sort, and filter a responsive grid of items

MIT
Latest version published 9 months ago

Package Health Score

66 / 100
Full package analysis