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
/** | |
* This @function checkSubset will check if arr2 is subset of arr1. | |
* @param {Array} arr1 this is the array to be checked over. | |
* @param {Array} arr2 this is the array to check if it is subset of arr1. | |
*/ | |
function checkSubset(arr1, arr2) { | |
/** | |
* Validating the parameters passed. | |
*/ | |
if ((Array.isArray(arr1) && arr1.length > 0) && (Array.isArray(arr2) && arr2.length > 0)) { |