Skip to content

Bug with objects #1

@dannybloe

Description

@dannybloe

Howdee,

Add this test and you will see it will fail:

assert.equal(classes('hello', {world: true, bla:true}), 'hello world bla')

I think there should be a join here as the filter returns an array and not a singleton:
item = Object.keys(item).filter(element => item[element]).join(' ')

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