Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility methods for comparing resource IDs.

Hierarchy

  • SiteResourceIdComparer

Index

Properties

Methods

Properties

Static separator

separator: string

Methods

Static equals

  • equals(resourceId: string, match: string): boolean
  • Determines if one string is equal to another string.

    Parameters

    • resourceId: string

      The resource ID to compare.

    • match: string

      The string to compare for a possible match.

    Returns boolean

Static lookUp

  • lookUp(resourceArray: object[], match: string): any
  • Looks up the matching ID in the resources array and returns the found item.

    Parameters

    • resourceArray: object[]

      The resource array to check for match. Elements in the array must have an id property.

    • match: string

      the string value to check the resource array for.

    Returns any