1.0.0 • Published 3 years ago
deepak-find-leader v1.0.0
What is this?
An npm pacakage that returns the elements in the array of integers which are greater that all the elements right to it.
How to install?
Run:npm i deepak-find-leader
uses:
const findLeader=require('deepak-find-leader')
findLeader([10,20,5,3,2])
Parameters
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
1.0.0
3 years ago