Posts

Showing posts from December 5, 2018

Plate appearance

Image
Jimmy Rollins holds the single season record for most plate appearances, at 778. In baseball statistics, a player is credited with a plate appearance (denoted by PA ) each time he completes a turn batting. A player completes a turn batting when: he strikes out or is declared out before reaching first base; or he reaches first base safely or is awarded first base (by a base on balls, hit by pitch, or catcher's interference); or he hits a fair ball which causes a preceding runner to be put out for the third out before he himself is put out or reaches first base safely ( see also left on base, fielder's choice, force play). In other words, a plate appearance ends when the batter is put out or becomes a runner. A very similar statistic, at bats, counts a subset of plate appearances that end under certain circumstances. Contents 1 Uses 1.1 Exception for batting titles 2 Calculating 3 Other uses 3.1 "Time at bat" in the rulebook 4

Array not working properly when removing data in angular 6

Image
up vote 0 down vote favorite I have a grid view and loop data from an array called objEntityType: EntityTypeVM; also I have created another an array equal to objEntityType as original dataset objEntityTypeOriginal: EntityTypeVM; on search method, I'm filtering data on objEntityTypeOriginal and assign it to objEntityType. But the problem is whatever I do to objEntityType same thins happen to objEntityTypeOriginal. about my code below, In OnSearch() I need to search text so before that I need to empty the objEntityType But after I empty the objEntityType objEntityTypeOriginal also will empty. import { Component, OnInit, Inject } from '@angular/core'; import { EntityTypeVM, EntityType, Entity, ApiResponseModel } from '../../../shared/models'; @Component({ selector: 'app-entity-create