New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hvoia

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hvoia

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

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

highest

FAQs

Package last updated on 01 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts