Skip to content

TechDevils/IndexOf-Performance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IndexOf-Performance

A simple project to work out which is fast IndexOf(x) == -1 or IndexOf(x) < 0

This is something that i have tried to google and not come up with very much.

So indexOf() == -1 or indexOf() < 0 or indexOf() == -1 vs indexOf() < 0 will most likely wont matter for most users however if you wanted to process an array with 50 items a million items its a question wort asking.

So to test this i have got a simple NodeJs app that registers the times taken to call

Setup

need to go to the direcotry and then run

  npm install

About

A simple project to work out which is fast IndexOf(x) == -1 or IndexOf(x) < 0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published