Skip to content

sunnyprasad055/Where-do-I-Belong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Where-do-I-Belong

a javascript program ffunction getIndexToIns(arr, num) { arr.sort((a, b) => a - b); // To sort the array(arr) in ascending order for (let i = 0; i < arr.length; i++) { if (arr[i] >= num) return i; } // this for will retrun the value where the indexing number(num) is placed. The index will be returned return arr.length; }

About

a javascript program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published