Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let sacos = 0;
- let gavetas_caladas = 0;
- let gavetas_conicas = 0;
- let hielo = 0;
- lista.foreEach(item => {
- if (item.descripcion.toUpperCase.contains('GAVETAS CALADAS') ) {
- gavetas_caladas += item.cantidad;
- } else if (item.descripcion.toUpperCase.contains('GAVETAS CONICAS') ) {
- gavetas_conicas += item.cantidad
- } else if (item.descripcion.toUpperCase.contains('HIELO') ) {
- hielo += item.cantidad
- } else if (item.descripcion.toUpperCase.contains('SACOS') ) {
- sacos += item.cantidad
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement