当前位置: 首页>>代码示例>>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;未经允许,请勿转载。