Skip to content

filter.addWords() doesn't work with array #152

@ihorbychkov

Description

@ihorbychkov

Hi everyone,
I've tried to add some words to the blacklist. I have an array containing bad words called BAD_WORDS. When I try to add it to the filter
const filter = new Filter(); filter.addWords(BAD_WORDS)
I receive an error
err

The only way to make it works is to map an array and add words one by one

err1

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions