Skip to content

Instantly share code, notes, and snippets.

View AlbertDev33's full-sized avatar

Albert Rocha AlbertDev33

  • Araraquara, São Paulo
View GitHub Profile
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.suggestSelection": "first",
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
@AlbertDev33
AlbertDev33 / Linked List
Created December 18, 2020 13:54
Javascript - Linked List
class Node {
constructor(value) {
this.value = value;
this.next = null;
}
}
let length = 0;
let head = new Node(null);
openssl rand -base64 756
@AlbertDev33
AlbertDev33 / filterArray.js
Created May 5, 2022 23:05 — forked from jherax/arrayFilterFactory.1.ts
Filters an array of objects with multiple match-criteria.
/**
* Filters an array of objects using custom predicates.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria
* @return {Array}
*/
function filterArray(array, filters) {
const filterKeys = Object.keys(filters);
return array.filter(item => {