Skip to content

Fails for {$ne: null} #1

@ben-pr-p

Description

@ben-pr-p

Love the library idea. Boundary case!

Doesn't handle {$ne: null} properly.

const data = [{prop: null}, {prop: 'hi'}]
const f = new Faltu(data)
console.log(f.find({prop: {$ne: null}}).get().length)
// logs 0

I believe it's this line, not sure:
https://github.com/moinism/faltu/blob/master/src/faltu.js#L101

Is there another recommended way to check for a property not equaling null?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions