function getDeprecationStatus()

in eng/scripts/inventory-dashboard/src/formatData.ts [403:413]


function getDeprecationStatus(pkg: any): boolean {
  // below one-liner not working. Makes the func return an empty string? Not sure how that is even possible  // property and property type check, then check deprecation status
  // return pkg.Support && typeof pkg.Support === "string" && pkg.Support === "deprecated";

  // property and property type check
  if (pkg.Support && typeof pkg.Support === 'string') {
    // true if support is deprecated
    return pkg.Support === "deprecated";
  }
  return false;
}