fdgt-apis/api

View on GitHub
src/structures/ChannelList.js

Summary

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





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

    findByName = name => this.findByKey('name', name.replace(/^#/, '').toLowerCase())





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

    get channelNames () {
        return this.data.map(({ name }) => name)
    }
}