make_leaderboard

1.0.8 • Public • Published

Make a Leaderboard



You need to install this package

npm i make_leaderboard

You need to import from package

const makeLeaderBoard = require("make_leaderboard")

Now you need to give parameters as a 2d array with name(String) and marks(number) in that package

const LeaderBoard = makeLeaderBoard([["rancho", 45],["chatur", 32],["raju", 30],["farhan", 28],["virus", 32],["joy", 45]]) console.log(LeaderBoard)


Final output will look like

[[ 1, 'joy' ],[ 1, 'rancho' ],[ 3, 'chatur' ],[ 3, 'virus' ],[ 5, 'raju' ],[ 6, 'farhan' ]]

Readme

Keywords

Package Sidebar

Install

npm i make_leaderboard

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

2.91 kB

Total Files

3

Last publish

Collaborators

  • web-devloper-sp