Created
June 13, 2018 15:12
-
-
Save nainav/3a65ce5347ecd7b958338ffa7bf76a3b to your computer and use it in GitHub Desktop.
JS Filter operation
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
var filter: any = { property: 'cpu', execution_id: uniqueExecution[0] }; | |
this.daemondataComparison = this.daemondataComparison.filter(function (item: any) | |
{ | |
for (var key in filter) | |
{ | |
if (item[key] === undefined || item[key] != filter[key]) | |
return false; | |
} | |
return true; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment