Created
December 3, 2019 17:04
-
-
Save Ifmr24/9ed96db99b2d8daab80ee940136e1603 to your computer and use it in GitHub Desktop.
verificar que existan skus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function verificar() { | |
const arr1_skus = arr1.rate.items.map(arr => arr.sku); | |
const skus = ['1', '2', '3', '4', '5']; | |
let checks = 0; | |
arr1_skus.map(sku => skus.includes(sku) && (checks = checks + 1)); | |
return checks === arr1_skus.length ? true : false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment