Skip to content
On this page

getProductRatingAverage ​

Definition ​

Get product rating average property

Signature ​

ts
export function getProductRatingAverage<T extends { ratingAverage: number }>(
  product: T,
): number | null 

Parameters ​

NameTypeDescription
product
T
product entity

Return type ​

ts
number | 
getProductRatingAverage has loaded