Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quesListArray = [
- {
- QuestionTypeID : 1,
- QuestionTypeName : 'Rating'
- },
- {
- QuestionTypeID : 2,
- QuestionTypeName : 'Yes/No'
- },
- {
- QuestionTypeID : 3,
- QuestionTypeName : 'Rating - Matrix'
- },
- {
- QuestionTypeID : 4,
- QuestionTypeName : 'Yes/No - Matrix'
- }
- ]
- for(let x of this.quesListArray) {
- if(x.QuestionTypeID == 1 && x.QuestionTypeID == 3) { // realised it's incorrect condition
- // return true or false
- }
- }
- this.quesListArray.includes(this.QuesListArray[..]) // Was not sure that what to write so as to get both ID's condition.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement