hvoia

1.0.2 • Public • Published

hvoia

This library that finds the highest value object in the array.

Installation

Use the package manager npm to install hvoia.

npm install hvoia

Usage

const hvoia = require('hvoia');
const data = [
    {
        name:'Eray Han',
        age:22,
        information:{
            level:37
        }
    },
    {
        name:'Irmak Han',
        age:10,
        information: {
            level: 33,
        }
    }
];

const result = hvoia(data,'information.level');
console.log(result); 
//{ name: 'Eray Han', age: 22, information: { level: 37 } }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

##Thanks Jetbrains/Webstorm

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i hvoia

      Weekly Downloads

      3

      Version

      1.0.2

      License

      ISC

      Unpacked Size

      6.46 kB

      Total Files

      9

      Last publish

      Collaborators

      • xncn