fdgt-apis/api

View on GitHub
src/structures/UserList.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
// Local imports
import Collection from 'structures/Collection'





export default class extends Collection {
    /***************************************************************************\
        Public Methods
    \***************************************************************************/

    findByUsername = username => this.findByKey('username', username)





    /***************************************************************************\
        Getters
    \***************************************************************************/

    get usernames () {
        return this.data.map(({ username }) => username)
    }
}