npm.io
1.1.0 • Published 2 years ago

findpropertyvalue

Licence
ISC
Version
1.1.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

Find Property Value

A simple npm package that searches for a property in an array or object and returns its value.

Installation

You can install the package using npm:

Usage

API

findPropertyValue(data, property)

This function takes two parameters:

  • data (array or object): The array or object to search in.
  • property (string): The property to find.

If the property is found in the data, the function returns its value. If the property is not found, it returns undefined.

Keywords