javascript
//** * Function that recieves a array and the rule to filter the itens on it * One sample: * function reduceToArray([],item=>item.id==1); * * Rule is to be a function that will have a item of the array as the parameter and his result is a boolean * like this for example: * function rule(item){ … Read More “JAVASCRIPT: ARRAYS – REDUCING TO AN ARRAY” »