Skip to content

Instantly share code, notes, and snippets.

View jordanrios94's full-sized avatar
😎
looking at a screen

Jordan Rios jordanrios94

😎
looking at a screen
  • 101Ways
  • London
View GitHub Profile
@jordanrios94
jordanrios94 / multiFilter.js
Created September 6, 2018 10:38 — 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

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example