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