Socket
Socket
Sign inDemoInstall

@mahiraltinkaya/object-search

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mahiraltinkaya/object-search

Easy and lightweight search library for finding items inside an array in object, strings etc...


Version published
Weekly downloads
0
Maintainers
1
Install size
2.88 kB
Created
Weekly downloads
 

Readme

Source

Installation :

npm install @mahiraltinkaya/object-search

Usage :

const {
  searchInValues,
  searchInArray,
  searchInObject,
  searchInString,
} = require("object-serach");

searchInValues([], "stringKey"); // response []
searchInValues({ object }, "stringKey"); // true || false
searchInValues("searh in text", "stringKey"); // true
searchInValues(undefined, "stringKey"); // false
searchInValues(null, "stringKey"); // false

/* Or another functions */

searchInArray([], "stringKey"); // response []

searchInObject({}, "stringKey"); // response true || false

searchInString("string text or number", "stringKey"); // response true || false

Keywords

FAQs

Last updated on 23 Dec 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc