Skip to content

Instantly share code, notes, and snippets.

View utkarshp64's full-sized avatar
🎯
Focusing

Utkarsh Pathak utkarshp64

🎯
Focusing
  • Pune, India
View GitHub Profile
@utkarshp64
utkarshp64 / webdev_online_resources.md
Created June 25, 2019 16:52 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@utkarshp64
utkarshp64 / multiFilter.js
Created June 10, 2019 15:10 — forked from jherax/arrayFilterFactory.1.ts
Filters an array of objects with multiple criteria.
/**
* Filters an array of objects with multiple criteria.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria as the property names
* @return {Array}
*/
function multiFilter(array, filters) {
const filterKeys = Object.keys(filters);
// filters all elements passing the criteria