An npm pacakage that returns the elements in the array of integers which are greater that all the elements right to it.
Run:
npm i deepak-find-leader
uses:
const findLeader=require('deepak-find-leader')
findLeader([10,20,5,3,2])
the findLeader() function takes an array of integers as an argument. By default it is set as an empty array.
It returns an array as a result