Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

map() like function on Collections that uses function argument as key instead. #47

@gd0st

Description

@gd0st

Hi,

Currently .filter() is a custom implementation that returns a filtered map with the ID being they key. .map() returns an array, consistent with Javascript documentation. Is it possible to implement a function that allows for the Collection to return a map that can return a map with a different key as for instance such as channel.name -> channel etc.

I wrote and got a reply in the wrong repo about this feature request here discordjs/discord.js#6645

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions