當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript immutable-class.immutableArraysEqual函數代碼示例

本文整理匯總了TypeScript中immutable-class.immutableArraysEqual函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript immutableArraysEqual函數的具體用法?TypeScript immutableArraysEqual怎麽用?TypeScript immutableArraysEqual使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了immutableArraysEqual函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: it

  it('getGranularities appropriately for number', () => {
    var defaults = getGranularities('number');
    var expectedDefaults = [0.1, 1, 10, 100, 1000].map(granularityFromJS);

    expect(immutableArraysEqual(defaults, expectedDefaults), 'number defaults are returned').to.equal(true);

    var bucketedBy = getGranularities('number', granularityFromJS(100), false);
    var expectedGrans = [100, 500, 1000, 5000, 10000].map(granularityFromJS);

    expect(immutableArraysEqual(bucketedBy, expectedGrans), 'bucketed by returns larger granularities').to.equal(true);

  });
開發者ID:RaviNK,項目名稱:pivot,代碼行數:12,代碼來源:granularity.mocha.ts

示例2: equals

 public equals(other: Customization): boolean {
   return Customization.isCustomization(other) &&
     this.title === other.title &&
     this.headerBackground === other.headerBackground &&
     this.customLogoSvg === other.customLogoSvg &&
     immutableArraysEqual(this.externalViews, other.externalViews);
 }
開發者ID:07033320a,項目名稱:pivot,代碼行數:7,代碼來源:customization.ts

示例3: equals

 public equals(other: Dimension): boolean {
   return Dimension.isDimension(other) &&
     this.name === other.name &&
     this.title === other.title &&
     this.expression.equals(other.expression) &&
     this.kind === other.kind &&
     this.url === other.url &&
     immutableArraysEqual(this.granularities, other.granularities);
 }
開發者ID:gerencio,項目名稱:pivot,代碼行數:9,代碼來源:dimension.ts

示例4: equals

 public equals(other: Dimension): boolean {
   return Dimension.isDimension(other) &&
     this.name === other.name &&
     this.title === other.title &&
     this.formula === other.formula &&
     this.kind === other.kind &&
     this.url === other.url &&
     immutableArraysEqual(this.granularities, other.granularities) &&
     granularityEquals(this.bucketedBy, other.bucketedBy);
 }
開發者ID:ewgenius,項目名稱:pivot,代碼行數:10,代碼來源:dimension.ts

示例5: immutableArraysEqual

export function immutableListsEqual<T extends Equalable>(listA: List<T>, listB: List<T>): boolean {
  if (listA === listB) return true;
  if (!listA !== !listB) return false;
  return immutableArraysEqual(listA.toArray(), listB.toArray());
}
開發者ID:fengweijp,項目名稱:pivot,代碼行數:5,代碼來源:general.ts

示例6: equals

 public equals(other: LinkViewConfig): boolean {
   return LinkViewConfig.isLinkViewConfig(other) &&
     this.title === other.title &&
     immutableArraysEqual(this.linkItems, other.linkItems);
 }
開發者ID:WuQic,項目名稱:pivot,代碼行數:5,代碼來源:link-view-config.ts


注:本文中的immutable-class.immutableArraysEqual函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。