models/communities/SuggestedFriend.js

import User from './User.js';

export default class SuggestedFriend extends User {
    /**
     * Creates a SuggestedFriend
     *
     * @constructor SuggestedFriend
     * @extends User
     * @param {number} user.mutualFriendsCount - Number of mutual friends.
     */
    constructor(user) {
        super(user);
        this.mutualFriendsCount = user.mutualFriendsCount || 0;
        Object.freeze(this);
    }
}