hasElementOfType(type: string): boolean {
   return (
     this.data["@type"] === type ||
     includes(
       _.chain(this.data.itemListElement)
         .map("@type")
         .value(),
       type
     )
   );
 }
Example #2
0
 hasElementOfType(type) {
     return this.data['@type'] === type || includes(_.chain(this.data.itemListElement)
             .map('@type')
             .value(),type);
 }