Equality test in array filter

Benchmark created on


Setup

const arr = '/test/string//with/slash//for/empty///1'.split('/')

Test runner

Ready to run.

Testing in
TestOps/sec
.filter(Boolean)
arr.filter(Boolean)
ready
.filter( v !== '' )
arr.filter(v => v !== '')
ready
.filter( v )
arr.filter(v => v)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.