@mahiraltinkaya/object-search

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i @mahiraltinkaya/object-search

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.95 kB

Total Files

6

Last publish

Collaborators

  • mahiraltinkaya