const isInIndices = (k: number) => { if(checkSelf) { return indices.find(i => i === k) !== undefined } else { return false } }
function containsStatusInTimeline(is: List<Item>, t: Tweet) { 'use strict'; return is.find(i => { if (i instanceof Tweet) { return i.id === t.id; } else { return false; } }); }
(state: Conversation, appState: IAppState, key: string, from: string) => { const contacts: List<Contact> = appState.contacts.get(key); return contacts.find(k => k.get('username') === from); };
static getDimensionByExpression(dimensions: List<Dimension>, expression: Expression): Dimension { return dimensions.find(dimension => dimension.expression.equals(expression)); }
static getDimension(dimensions: List<Dimension>, dimensionName: string): Dimension { dimensionName = dimensionName.toLowerCase(); // Case insensitive return dimensions.find(dimension => dimension.name.toLowerCase() === dimensionName); }
public findByName(name: string): LinkItem { return this.linkItems.find(li => li.name === name); }
const withRemovals = selStack.filter(a => { return removeAnnotations.find(annotation => { return annotation.get('id', null) === a.get('id', null) }) === undefined })
getNodeById(id: number) { return this.nodes.find(node => node.id === id); }